aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes InetAddress's getHostName() Fails to work. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "InetAddress Watch "InetAddress New topic
Author

InetAddress's getHostName() Fails to work.

Parth Bhatt
Ranch Hand

Joined: Oct 19, 2005
Posts: 58
Hi Ranchers,

I have a problem with IP Address resolution in my lan. The following is the code that i used :



The above code fails to resolver the IP Address. I am using RedHat Linux 9. If i try


i get the Hostname, as expected. Can anyone help me as to why fails to IAddr.getHostName() return the hostame.


If your new Big Idea doesn't scare the hell out of you, <br />it's probably not a "new Big Idea".
 
Don't get me started about those stupid light bulbs.
 
subject: InetAddress's getHostName() Fails to work.