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.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
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.