Dashboard showing all traffic as local

Server Version#: 1.14.1.5488
Player Version#: n/a

My setup is: CloudFlare -> nginx reverse proxy -> Plex

When a remote user streams from my Plex server, the session is correctly identified as a WAN session in Tautulli, but the new Plex dashboard shows all the traffic as local instead of remote. I would guess that the dashboard code is not properly interpreting the proxy headers to find the real originating IP?

1 Like

Bumb, ever found a solution?

No, it’s still an issue with server 1.15.2.793 and web client 3.91.0.

Have you set any proxy headers in your nginx configs? For example:

proxy_set_header X-Forwarded-By $server_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_http_version 1.1;

If so, my guess is Plex doesn’t support the headers. If not, add those and give it a try.

Yes:

    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

Well, it’s not that Plex doesn’t support the headers, it’s that the dashboard graph doesn’t seem to be using the same logic. Remote streams are correctly shown as remote in the per-stream information card in the dashboard above the graph, and also for WAN bandwidth limits and in Tautulli’s information displays. The problem seems to be isolated to the graph:

One thought for the Plex devs: Are you correctly handling X-Forwarded-For: in the case of multiple proxies, where the value is a comma-separated list of IPs (with the original IP first)? I’ve seen a bug in other projects where it worked OK behind a single proxy but not multiple proxies.

Fixed in PMS 1.15.4.919

1 Like

Confirmed, working properly now for me. Thanks!

Can you help me with this?
i got SSLH going to Openvpn-as to Nginx

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.