Getting your IP address in Java From Aaron

Note to self – remember this code sequence from Aaron:
You can normally do something like this from just about anywhere:
try {
InetAddress i4 = Inet4Address.getLocalHost();
String ipAddress = i4.getHostAddress()); // IP address
} catch (UnknownHostException e) {
// could not get address, do nothing?
}
-AZ