File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InetAddress's getHostName() Fails to work.

 
Parth Bhatt
Ranch Hand
Posts: 58
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic