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