This looks like bug #4564, see: http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=4564
for details. It is fixed in Tomcat 3.3.1-dev found at: http://jakarta.apache.org/builds/jakarta-tomcat/nightly-3.3/ I think you will find this version as stable and more bug free that Tomcat 3.3 if you can give it a try. Cheers, Larry > -----Original Message----- > From: Rizki Wicaksono [mailto:[EMAIL PROTECTED]] > Sent: Saturday, January 12, 2002 2:49 PM > To: [EMAIL PROTECTED] > Subject: Why does getRemoteHost() always return localhost ??? :(( > > > > I used tomcat-3.2.3 and I don't have any problem when accessing > http://mytomcatserver:8080/examples/jsp/snp/snoop.jsp > from any machine. > This page return that machine IP address and hostname. > > Now, I upgrade my server to tomcat-3.3, and I do have a problem when > accessing : > http://mytomcatserver:8080/examples/jsp/snp/snoop.jsp > from another machine. > snoop.jsp page sometimes (usually the first try) returns the correct > machine IP address and hostname, but most of the time it returns > localhost or 127.0.0.1 > > Please help me, since i need my client IP address for security reason. > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>