finding ip 
Author Message
 finding ip

i use LocalIP property of winsock control to get the machine's ip. but i can
only get the network static ip.
is there any way to find the internet ip address?
i can do it by redirecting ipconfig.exe 's output to a file and using it to
get the ip. but i need it without any program's help. is tehere any api for
this?
Thanks in advance



Fri, 21 Feb 2003 04:52:49 GMT  
 finding ip
Hi,

You can connect the winsock control to an internet server ie
www.microsoft.com on port 80 (HTTP), on the connect event, the localIP will
be your "internet" IP...

There is another possibility, using APIs, for getting All IP Addresses
http://home.earthlink.net/~butlerbob/vb/network/tcpip/getips.htm

Pierre-yves



Quote:
> i use LocalIP property of winsock control to get the machine's ip. but i
can
> only get the network static ip.
> is there any way to find the internet ip address?
> i can do it by redirecting ipconfig.exe 's output to a file and using it
to
> get the ip. but i need it without any program's help. is tehere any api
for
> this?
> Thanks in advance



Sat, 22 Feb 2003 17:07:28 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. finding ip address from isdn line

2. find IP address from web site

3. Finding IP addresses for use in Winsock

4. finding IP address in VB4

5. Finding IP Addresses for Dial up connection

6. Finding IP (help)

7. find IP when username is given

8. finding ip addresses

9. Find IP address for a given Server Name

10. finding ip

11. Finding IP addresses for use in Winsock

12. Using winsock control for finding IP addy

 

 
Powered by phpBB® Forum Software