title: Get IP address of client in JSP
body: <p>I need to get the IP address of the client in the JSP page. I have tried the following ways:</p>
  
  <pre><code>request.getRemoteAddr()
  request.getHeader("X_FORWARDED_FOR")
  request.getHeader("HTTP_CLIENT_IP")
  request.getHeader("WL-Proxy-Client-IP")
  request.getHeader("Proxy-Client-IP")
  request.getHeader("REMOTE_ADDR")
  </code></pre>
  
  <p>However, none of those ways did return the desired IP address. How do I get the IP address of the client in the JSP page?</p>