On a linux machine to get the local IP address.
Created May 14, 2012
Burke Cox I've been all over this problem today. It seems to vary across platforms -- and has real trouble working with DHCP.
Apparently, the NetworkInterface class solves this for JDK1.4, but I am unable to find an acceptable workaround for JDK1.3.
Currently, I am looking at passing the IP via a shell script at execution time