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
[409 byte] By [AsmCoder8088] at [2007-11-17 22:38:55]
# 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
s. roelants at 2007-11-10 8:42:41 >