Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting by IP through router (VB6)

Status
Not open for further replies.

cryoburned

Programmer
May 23, 2006
14
US
So i'm using winsock to connect to a winsock on another computer.. the second computer is behind a router.. how do I connect to the router and get it to connect to a computer by its local ip in that router/network?
 
The other person has to configure their router to forward certain packets (on certain ports) to a specific computer.
Once he does this, all packets that you send will be routed to him.

He can also bypass the router by setting up that IP to be in the DMZ, which passes packets directly.

-David
2006 & 2007 Microsoft Most Valuable Professional (MVP)
2006 Dell Certified System Professional (CSP)
 
I was hoping that wouldn't be the case. Microsoft's Remote Connection uses a Domain feature that I think allows you to connect through a router...
 
>uses a Domain feature that I think allows you to connect through a router.

You are talking about Universal Plug and Play's Internet Gateway Device.

If your router is not a UPnP NAT device then this feature may not work ...
 
> If your router is not a UPnP NAT device then this feature may not work ...

Even if it is you may have problems. Some devices are not reliable at handling UPnP.
 
The remote end must make the proper UPnP calls to map the desired port(s). This simply allows the process to be automated, and a well behaved program will make calls to remove the mapping(s) when it terminates.

The private side of the NAT device still holds the keys. There is no procedure to let you break in from outside.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top