LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   java IP address finder (https://www.linuxquestions.org/questions/programming-9/java-ip-address-finder-431113/)

Fredstar 04-02-2006 06:58 PM

java IP address finder
 
Does anyone know if there is a class that will find the address of a machine behind a router/firewall? Like if your machine is on a private network 192.168.0.0/255 and your firewall etho is ip address 24.63.214.23, how would you get the 24. address?

I have looked through the API briefly and ran by INet4Address and have not seen anything that might work.

thanks

spooon 04-02-2006 08:10 PM

You can open something on the Internet that tells you the IP address, like www.whatismyip.com

Fredstar 04-02-2006 09:35 PM

Quote:

Originally Posted by spooon
You can open something on the Internet that tells you the IP address, like www.whatismyip.com

True, but im trying to build something that can get the external IP address from within a network.


All times are GMT -5. The time now is 06:17 AM.