tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <>
Subject Re: Tomcat - Apache: IP replacement
Date Mon, 02 Jul 2007 11:21:04 GMT
Ha ha.... you made me panic, no my load sharing stuff behind JK, is not 
doing that, ie getRemoteAddr is working.
You know if you on a MS box, (guessing wildly here), the first time I ever 
saw as a local address is when I was playing with IPv6.....
and only on the "local" IPV6 addresses, maybe?
Anyway if its any concillation.... I dont think JK->TC, does that normally.

----- Original Message ----- 
From: "Nino Ulsamer" <>
To: <>
Sent: Monday, July 02, 2007 12:01 PM
Subject: Tomcat - Apache: IP replacement


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