When placing a proxy (nginx or other) in front of Plex, Plex detects me as remote, even though the proxy, and the appropriate proxy headers are local.
It would be useful to test if the source IP of the proxy (making the http connection) is on the local network, and one of the two headers also indicates the source IP is also local, and then detect the connection as local, not remote.