File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Sockets and Internet Protocols
InetAddress's getHostName() Fails to work.
Joined: Oct 19, 2005
Sep 16, 2007 23:50:00
I have a problem with IP Address resolution in my lan. The following is the code that i used :
InetAddress IAddr = InetAddress.getByName("188.8.131.52"); 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".
I agree. Here's the link:
subject: InetAddress's getHostName() Fails to work.
RMI Server Configuration
Server Host/Port Validation
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015