Converting IP Numbers to Strings
public class MyMachineName {
public static void main (String arg[]){
InetAddress local = null;
local = InetAddress.getLocalHost();
} catch (UnknownHostException e){
byte[] b = local.getAddress();
for (int i = 0; i < b.length; i++)
strAddress += ((int)255 & b[i]) + “.”;
System.out.println (“Local = “ + strAddress);