Getting the WAN IP address?
How can I obtain the IP address of the computer that is running my program? Because I want the wide area network IP address, I do not want to use gethostbyname.
Some people have suggested downloading web pages that return your IP address and then extracting the IP address string from the web page, but that seems awfully unreliable.
Does anyone have an idea?
Thanks
Daniel
# 1 Re: Getting the WAN IP address?
Have a look at "getaddrinfo(...)". I haven't tried it, but it may help you.
TSYS at 2007-11-10 8:41:41 >

# 2 Re: Getting the WAN IP address?
take a look at the samples here at the site
http://www.dev-archive.com/network/index.shtml
look at "network information"
Hope this helps
Steven Roelants