On Fri, 19 Oct 2001, Roy K. Mayr R. wrote:
> Date: Fri, 19 Oct 2001 11:13:29 -0300
> From: Roy K. Mayr R. <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: Log Visitor's IP address?
>
> I Craig...
>
> In "localhost_access_log.YYYY-MM-DD.txt" I can find IP address of proxy
> (many times....). How I can get real IP address ??
>
Unfortunately, Tomcat only knows what the TCP/IP socket tells it. And in
the case of a proxy in front of your server, that's going to be the
proxy's IP address :-(.
You should investigate the configuration of your proxy server to see if it
can forward the original user's IP adddress on somehow (perhaps by adding
a header or something). Then, you could write a Filter to capture it, or
use a modified version of the access logger that could print it out.
> Roy
>
Craig