Cant get hostname by ip address
InetAddress address = InetAddress.getByName("java.sun.com");System.out.println(address);// will print java.sun.com/72.5.124.55InetAddress address= InetAddress.getByName("72.5.124.55");System.out.println(address.getHostName());// print