title: How to get client Ip Address without using header in Java
body: <p>I am using apache-tomcat for app server and web server. 
  I want to keep track of the IP addresses of the systems that access my app server. But unfortunately the only way to get the IP address of the client systems and not the IP of web server we have to use Header X-Forwarded-For'. But I do not use X-Forwarded-For header, as it might expose the IP and cause security threat. </p>
  
  <p>Is there any other way to accomplish this without 'X-Forwarded-For' header or Will it be secure to use this without any security compromises. Thanks in advance! </p>
  
  <p>Ref: <a href="http://www.mkyong.com/java/how-to-get-client-ip-address-in-java/" rel="nofollow">http://www.mkyong.com/java/how-to-get-client-ip-address-in-java/</a></p>