tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Tang" <>
Subject Re: getRemoteHost return IP address
Date Fri, 09 Jul 2004 23:46:03 GMT
It is not the problem with the tomcat log. It is our appliation log shows 
that that "getRemoteHost" returned an IP instead of host name. It shouldn't 
be a network problem because the call does return the host name for a period 
of time. But we are not sure what our web application does that trigger the 
call to return IP address afterwards.


>From: QM <>
>Reply-To: "Tomcat Users List" <>
>To: Tomcat Users List <>
>Subject: Re: getRemoteHost return IP address
>Date: Fri, 9 Jul 2004 17:59:17 -0500
>On Fri, Jul 09, 2004 at 06:49:51PM +0000, Michael Tang wrote:
>: I am using Tomcat 4.0.6 and our customer ran into a weird and
>: hard-to-reproduce problem. From the log, we see within one servlet,
>: HttpServletRequest.getRemoteHost return host name (enableLookups="true" 
>: server.xml). However, during the running, one HttpProcessor thread 
>: switch to returning IP address instead of the hostname. Does anyone see
>: similar problem before or have any suggestion?
>Is the macine otherwise (that is, outside of Tomcat) able to perform a
>reverse lookup of the IP?  Because if the reverse lookup fails, Tomcat
>will just log the IP.
>Otherwise, if it's a true Tomcat bug, it's unlikely it will be fixed in
>an official release: v4.0.x is now two revisions behind the current
>version (5.0.x).
>software  --
>tech news --
>To unsubscribe, e-mail:
>For additional commands, e-mail:

MSN Life Events gives you the tips and tools to handle the turning points in 
your life.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message