InetAddress.getLocalHost().getHostAddress() returns loopback on server?
I'm trying to create a script to test server availability. In the response I would like to return the IP of the server. The following works fine locally but when I run it online it just gives me the loopback address.
InetAddress.getLocalHost().getHostAddress();
Granted the server is a shared box but shouldn't I still be able to determine the associated IP?
Josh

