|
-
Mar 10th, 2005, 08:58 AM
#1
Thread Starter
Lively Member
Winsock IP problem
How do i get a winsock object to return my internet ip address, cos localhost returns my network adress, im behind a router and think this might be causing me problems, anyhelp greatly appriciated
Malb
-
Mar 10th, 2005, 09:19 AM
#2
Re: Winsock IP problem
If localhost returns your network address, you need to check the settings on your router. You should be using the DHCP of your router's NAT firewall, and if you are not, your firewall is not configured properly. Make sure the router is configured properly, and then release and reassign all your DHCP leases. On the local side, NAT should be transparent.
Last edited by Comintern; Mar 10th, 2005 at 09:19 AM.
Reason: typo
-
Mar 10th, 2005, 11:11 AM
#3
Re: Winsock IP problem
 Originally Posted by malb
How do i get a winsock object to return my internet ip address, cos localhost returns my network adress, im behind a router and think this might be causing me problems, anyhelp greatly appriciated
Malb
Hey Malb,
For winsock questions please use our Distributed Computing (multi-tier development) Forum You may get a faster responce there 
Ok to your question, Its not actually possible for the winsock control to display the actual Ip address as you have found it will only display the network address
This has beena sked before and This Thread should assist you,
The way that was suggested in this thread was that to use a site such as www.WhatIsMyIp.com and parse the Html for the IP address. Not a fool porve method if the site ever changed its design but will work.
I hope this helps, let us know if it doenst 
Pino
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
|