|
-
Jul 28th, 2006, 05:51 AM
#1
Thread Starter
Addicted Member
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
-
Jul 28th, 2006, 06:37 AM
#2
Lively Member
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
-
Jul 28th, 2006, 09:14 PM
#3
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.)
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|