How to get IP address of a Host in Java?Description: You can get IP address of any host by using InetAddress class. By calling getByName() method with host name as parameter, it returns InetAddress object. On this object you can call getHostAddress() method to get the IP address of the given host. C…
[ More ]