Computing.Net > Forums > Programming > Getting WAN IP in java or C++

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Getting WAN IP in java or C++

Reply to Message Icon

Name: Nicholas Ducharme
Date: June 14, 2002 at 08:06:27 Pacific
Comment:

Hi,

Someone know how to get the WAN IP adress with a small Java or C++ application?



Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: June 14, 2002 at 08:18:00 Pacific
Reply:

That may be compiler dependent. We use 'gethostbyname()' in our Linux & UNIX systems. You pass in the hostname and the IP is in the structure returned by the function.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Getting WAN IP in java or C++

how do use call function in java like C www.computing.net/answers/programming/how-do-use-call-function-in-java-like-c/951.html

VB, C, Java or all? www.computing.net/answers/programming/vb-c-java-or-all/2645.html

Input from Serial Port in Java/C++ www.computing.net/answers/programming/input-from-serial-port-in-javac/11868.html