IP Address to Hostname in Java?
I tried the code from here and it works. Namely:
InetAddress addr = InetAddress.getByName("192.168.190.62");
String host = addr.getHostName();
System.out.println(host);
This works as the javadocs say only local when no reverse lookup is needed: If a literal IP address is supplied, only the validity of the address format is checked.
If someone know a way without using third party jars to do the remote lookup...