DEVFYI - Developer Resource - FYI

How do I convert a numeric IP address like 192.18.97.39 into a hostname like java.sun.com?

Networking Interview Questions and Answers


(Continued from previous question...)

131. How do I convert a numeric IP address like 192.18.97.39 into a hostname like java.sun.com?

String hostname = InetAddress.getByName("192.18.97.39").getHostName();

Other Interview Questions