Nov
12
|
Use the getHostName() method of the InetAddress class
InetAddress address = InetAddress.getByName(ipaddress); String hostname = address.getHostName();
Leave a Reply
You must be logged in to post a comment.