YOUR DAILY TECHNOLOGY TIDBIT !
Did you know How to Find a Hostname for an IP Address ?
- InetAddress.getLocalHost() : In Java InetAddress.getLocalHost() function is used to get the Ip Address of the current Server that is running the Java app
- InetAddress.getHostName() : InetAddress.getHostName() is used to get Hostname of the current Server name.
Must Read :
Comments