Blog54.4K views848 votes0 replies2,622 following
Recovering Real Client IPs in Tomcat with RemoteIpValve
When Tomcat sits behind a reverse proxy, request.getRemoteAddr() returns the proxy IP. RemoteIpValve recovers the real client address—if you configure the trust boundaries correctly.