logo
pub const HTTP_CLIENT_IP: Key;
Expand description

The IP address of the original client behind all proxies, if known (e.g. from X-Forwarded-For).

This is not necessarily the same as net.peer.ip, which would identify the network-level peer, which may be a proxy.

This attribute should be set when a source of information different from the one used for net.peer.ip, is available even if that other source just confirms the same value as net.peer.ip. Rationale: For net.peer.ip, one typically does not know if it comes from a proxy, reverse proxy, or the actual client. Setting http.client_ip when it's the same as net.peer.ip means that one is at least somewhat confident that the address is not that of the closest proxy.

Examples

  • 83.164.160.102