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.
Monday, 8 January 2018
Java program to find host IP address
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment