Blog54.4K views4,929 votes0 replies4,496 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.