How can I obtain a hostname given an IP address?

Govind Seshadri

The code snippet:

String host = InetAddress.getByName("216.217.9.172").getHostName();

should give you the hostname www.jguru.com

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact