Answer Lurie
<%= request.getRemoteAddr() %>
does not provide the IP address of the client that requested the URl, but only provided the IP address assigned to the server.
If the request comes through a proxy server, you can use this:
request.getHeader("X_FORWARDED_FOR")
he will provide the IP address of the client.
source share