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.


Re: Do any of these work? - Nope

Posted by Salil V Gangal on September 04, 2000 at 12:58 PM

Hi Jeff,

Errrr ... nope ... they don't. Marty Hall's program (click here and then click on also lists these some of these variables. But that's not it. At times the REMOTE_HOST is not available (masked). But in Perl/CGI almost always one can get to the descriptive name of the user's IP, by the technique I described.

In your list Jeff, AFAIK, req.getServerName(); and req.getHeader("host"); result in the same thing, which is the web server which is serving the req.

Salil V Gangal


Sponsored Links

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