wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Unable to get Client IP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to get Client IP" Watch "Unable to get Client IP" New topic
Author

Unable to get Client IP

C.P Sanchalanam
Greenhorn

Joined: Aug 05, 2006
Posts: 15
Hello,
We configured a Tomcat behind Apache web server and all HTTP & HTTPS requests are served by Tomcat via Apache web server. The issue is we are able to see client IP in apache logs but on the tomcat end it shows Apache web server IP as client IP. How to get the actual Client IP on the Tomcat side? I believe this can be achieved by some config changes on the Apache end. But not sure what needs to be changed here? any help would be appreciated.

Thanks,
Sanchi
C.P Sanchalanam
Greenhorn

Joined: Aug 05, 2006
Posts: 15
Hello, I googled for some help on this and am unlucky so far. If anybody has any clue on how to achieve this please post it here.

~Sanchi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to get Client IP
 
Similar Threads
MVC design pattern in the Client Server Architecture?
Clarifications on Java
tomcat maxthread count and minspare thread count on tomcat 6.0
Is Tomcat an app server.
Tomcat 6 and DNS Lookup