How to use Winsock control in a Broad band router
Hi,
I have used the winsock control before, but only on Dialup connections where the network IP address of both the server and the client (my PC) was known.
But now I have a broadband router that connects to the internet, my PC is connecetd through a LAN, the IP address is obtained dynamically.
I would like to know how I can make applications that communicate with each other on the internet using the Winsock on such networks ???
Your help will be much appreciated..........
thanks
arunb
Re: How to use Winsock control in a Broad band router
You have to port forward!!!
If is port 80 ur usein the 80 -> 80
as the person trying to access ur IP on port 80 ..
will use 80 an be forwarded to 80 .. I know a bit complicated ..
Any ways a google search .. on it will help .. more
Re: How to use Winsock control in a Broad band router
Try http://portforward.com/
Basically you go into the router and tell it which port number to forward to which computer for incoming connections. (Outgoing connections - those you initiate - don't need to be forwarded. Only those requests initiated by another computer - and one outside your router - need to be forwarded.) Then you use the winsock control the same way as before, using your external IP address (connect to http://www.whatsmyip.org/ to find it) from the other computer. (From your computer your IP address is always 127.0.0.1, or you can run ipconfig from a cmd window to see your actual internal IP.)