Register / Login
Win a copy of
Cross-Platform Desktop Applications: Using Node, Electron, and NW.js
this week in the
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
Sockets and Internet Protocols
InetAddress's getHostName() Fails to work.
posted 10 years ago
I have a problem with IP Address resolution in my lan. The following is the code that i used :
InetAddress IAddr = InetAddress.getByName("18.104.22.168"); System.out.println(IAddr.getHostName());
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".
Boost this thread!
RMI Server Configuration
Server Host/Port Validation