Resolves the client's IP address, or undefined when it cannot be
determined (no socket and no trusted forwarding header).
Behind trusted proxies only header is read. X-Real-IP used to be the
fallback when X-Forwarded-For was missing, and the client decides whether it
is: behind a proxy that sets only X-Real-IP, a made-up X-Forwarded-For on
each request picked a new rate-limit bucket.
Resolves the client's IP address, or
undefinedwhen it cannot be determined (no socket and no trusted forwarding header).Behind trusted proxies only
headeris read. X-Real-IP used to be the fallback when X-Forwarded-For was missing, and the client decides whether it is: behind a proxy that sets only X-Real-IP, a made-up X-Forwarded-For on each request picked a new rate-limit bucket.