Note that this might not work properly for an application behind a reverse-proxy or a load balancer. In such case we assume the web container involves some technique of overridding the client IP address with a value from the request headers (e.g. io.undertow.server.handlers.ProxyPeerAddressHandler, org.apache.catalina.valves.RemoteIpValve, etc.).
|