tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <>
Subject Re: AW: Tomcat - Apache: IP replacement
Date Mon, 02 Jul 2007 12:26:09 GMT
I'm sorry, in fact that's what I wanted to tell you. I tested with 
Apache and Tomcat not on the same machine, but with the client on the 
Apache machine. If I move the client to another machine, the result is 
the wanted result, it shows the IP of the client.

I tend to agree with Johnny Kewl, most of the times one notices strange 
IP address behaviour it comes from IPv6. But unfortunately this comment 
doesn't solve your problem :(



Nino Ulsamer wrote:
> Rainer,
> thanks for your comment. But I don't want to see the Apache server address, I want to
see the address of the user who originally started the request!
> Nino
> -----Urspr√ľngliche Nachricht-----
> Von: Rainer Jung [] 
> Gesendet: Montag, 2. Juli 2007 12:22
> An: Tomcat Users List
> Betreff: Re: Tomcat - Apache: IP replacement
> Something is wrong with your configuration or box setup. 
> request.getRemoteAddr() works for me, it shows the Apache server address 
> used by the request.
> Regards,
> Rainer
> Nino Ulsamer wrote:
>> Hello,
>> I have a problem with finding out the IP address of requests in Tomcat.
>> I'm using the HttpServletRequest.getRemoteAddr() function, but it
>> returns "". My server configuration is as follows: Apache
>> receives all requests and forwards them to Tomcat via mod_jk. Probably
>> in this step it replaces the address of the original request by its own
>> address. I've read a lot about this topic already, but I always found
>> the solution being "you should use mod_jk". I'm using JK 1.2, is it
>> possible to configure it so that it does not replace the IP address?
>> Thanks a lot,
>> Nino Ulsamer

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message