aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to get Client IP" Watch "Unable to get Client IP" New topic

Unable to get Client IP

C.P Sanchalanam

Joined: Aug 05, 2006
Posts: 15
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.

C.P Sanchalanam

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.

I agree. Here's the link:
subject: Unable to get Client IP
Similar Threads
Clarifications on Java
Tomcat 6 and DNS Lookup
tomcat maxthread count and minspare thread count on tomcat 6.0
Is Tomcat an app server.
MVC design pattern in the Client Server Architecture?