|
-
Mar 19th, 2007, 01:41 PM
#1
Thread Starter
New Member
Getting winsock to listen on external ip
i have internet over cable and wireless on my laptop, i am trying to make a server/client program to use over the internet, but i can only get winsock to listen on the internal network IP (ie 192.168.1.103). How do i get it to listen for connections coming in over the my internet IP (ie 63.58.xx.xxx)
-
Mar 19th, 2007, 03:57 PM
#2
Thread Starter
New Member
Re: Getting winsock to listen on external ip
never mind, i figured it out, i just needed to configure my wireless router.
-
Mar 31st, 2007, 02:25 PM
#3
Addicted Member
Re: Getting winsock to listen on external ip
How to do it ? i really need it now..
(i am not the topic maker but i need it)
-
Mar 31st, 2007, 07:33 PM
#4
Re: Getting winsock to listen on external ip
 Originally Posted by k3pos
How to do it ? i really need it now..
(i am not the topic maker but i need it)
Configure port forwarding on your router and make sure any firewalls aren't blocking the connections in your program.
You will need to find out your LAN IP. Winsock.LocalIP (or is it .LocalHostIP) will show you your local IP. Or just go to command prompt and type: ipconfig
Then you will need to access your router, it's usually:
http://192.168.0.1
http://192.168.1.1
One of those unless your router uses different numbers. Then you will need to find Port Forwarding (might be in advanced settings) and enter your IP and the port number your program uses. Select either TCP, UDP, or both depending on which one your program uses.
Then check the enable box and save your settings.
The quickest/easiest way is to enable your computer for DMZ hosting. But this will open all ports and can even mess up somethings (my current ISP doesn't like when I enable DMZ hosting for some reason). So I would not recommend it.
-
Apr 1st, 2007, 09:59 AM
#5
Re: Getting winsock to listen on external ip
It would be interesting to see somebody's code for UPnP to do this automatically from a VB program. Of course not every router supports it, not everyone has it enabled in Windows, not everyone has WinXP, etc. etc.
-
Apr 2nd, 2007, 04:34 AM
#6
Lively Member
Re: Getting winsock to listen on external ip
there is a another easy way to do that. make a simple appz and call http://www.whatismyip.com and parse the page for the ip. the page will show you your external ip if i am not wrong. but you know i am nerd man, so i could be wrong.
-
Apr 2nd, 2007, 03:23 PM
#7
Re: Getting winsock to listen on external ip
Getting your external IP doesn't send packets from your router (the device sitting on the external IP) to the computer on the LAN - the router still has to be told which computer gets traffic for which port.
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
|