Plex API - Sessions Status not honoring X-Forwarded-For & X-Real-IP with IPv6 clients
I recently enabled IPv6 with my NGINX reverse proxy, and discovered that if client is IPv6, Plex API for session status returns IPv4 address of my NGINX server. Plex Server Logging shows IPv6 clients address correct, but the Plex API for session status does not.
Instead, the API is returning an IPv4-Mapped IPv6 Address of my NGINX address.
It is my belief that for IPv6 addresses in X-Forwarded-For and X-Real-IP, they are ignored and the native client IP is used by default.
See PMS Log example below, with the same entry pulled from API status sessions
How I observe the Player Address
Example PMS Log showing IPv6 client, with X-Forwarded-For and X-Real-IP headers set
Example Plex Sessions Status output showing NGINX reverse proxy address instead of IPv6 client.