request.getRemoteAddr() not returning correct value
Hello,
we are facing a issue which i describe below.
we have our application previously on Tomcat 6.0.32 which has to be migrated to JOnAS 5.2.1 server.
we are also using Apache HTTP 2.2 as a proxy server between Tomcat and application every request goes to Apache HTTP 2.2 server first then it redirect to the our local environment.So as the request is
coming from Apache HTTP 2.2 the method request.getRemoteAddr() returns the IP Address of the server where Apache HTTP 2.2 is installed.
But as we have migrated our application from Tomcat to JOnAS,the same line in one of the filter request.getRemoteAddr() is returning IP address of our local development machine where JOnAS is running.
---->Earlier in Tomcat we used to set path of our application in server.xml of tomcat.
But in JOnAS we are deploying WAR due to problem in loading from context.
I am really unable to understand the problem.
Thanks for your support.
Regards, KSH