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
Printable View
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
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.
Hey Malb,Quote:
Originally Posted by 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