The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


And finding the descriptive host ?

Posted by Salil V Gangal on September 04, 2000 at 11:23 AM

Hi Jeff,

It works ! Thanks.

Okay, my next question is how to figure out the user's host's description. This is not the same as the IP. Generally Java Servlet call request.getRemoteHost() will result in this. But not always. The way to overcome this in Perl/CGI is to use gethostbyaddr($address, 2) where the $address is the 'packed' array of user's IP.

Any inputs about what's the equivalent approach in Java Servlets ?

Salil V Gangal


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us