i wrote a small example below that displays my ip addrress. unfortuanaly this only works if your not networked and such so it doesnt display my isp issued ip address but only my network ip address. i need the ip issued from my isp so does anyone know how this is done?
Posted on 2002-02-16 13:29:32 by smurf
Did you forget to attach it?

The best method IMO is to use iphlpapi and read the IPs of all adapters. But gethostbyname also returns a list with all the IPs so your ISP IP should be in the list as well.

Posted on 2002-02-16 15:01:28 by Thomas
The are many threads that do so on this forum : and here is one of them:
try it and there will be what you want
Posted on 2002-03-09 03:04:11 by amr