lundi 29 juin 2015

JBoss Server - Apache Tomcat get Client Ip using J2EE

I am using JBoss Server version 5.x with Apache tomcat 7. I am trying to get the client IP address using following code in my Jsp file :

request.getRemoteAddr();

But it is always returning me the server's IP.I am not using any load balancer.In my Jboss access logs , I can see the client IP Address.

Please help me to know where am I making mistake?

Aucun commentaire:

Enregistrer un commentaire