> ## Content Index
> Fetch the complete content index at: https://blog.coopnet.us/llms.txt
> Use this file to discover other available public pages before exploring further.

# Plex kept picking the proxy over the LAN, and it was luck when it didn't
- URL: https://blog.coopnet.us/plex-local-vs-proxy/
- Published: 2026-11-19T13:10:56.000Z
- Updated: 2026-11-19T13:10:56.000Z
- Description: My TVs at home kept streaming through the reverse proxy. In bridge mode Plex only marked its container IPs as local, and plex.tv marked my LAN URL as remote, so the two raced. Host networking, a preferred interface and advertising only the proxy URL fixed it.
- Author: Renstur
- Tags: services, plex, truenas, field-notes

After I moved Plex behind the NetBird reverse proxy, streams from outside the house were fine. [The cutover is its own post](https://blog.coopnet.us/plex-behind-netbird-proxy/). Home got strange instead.

The LG TV in one room played locally on the 25th. On the 26th it was going out through the proxy and coming back in, and Plex treated it as a remote client. Nothing on the server had changed overnight. My phone had played locally the whole time, and it turns out that was luck too.

```tested-on
truenas scale: 25.10
plex media server: 1.43.5
truenas plex app: 1.3.x

```

## What plex.tv was handing the apps

Plex apps learn how to reach a server from the list of connections plex.tv publishes for it. Each connection carries a local flag, and the apps lean on that flag when they pick a route. You can read the same list yourself with the server's token:

```console
$ curl -s -H "Accept: application/json" -H "X-Plex-Token: $PLEX_TOKEN" \
    "https://plex.tv/api/v2/resources?includeHttps=1" \
  | jq -r '.[] | .connections[]? | "\(.local)  \(.uri)"'

```

Keep the token out of your shell history and out of any screenshot. It's the server's own credential.

Before the fix my list was wrong in two ways. The only connections marked local were the container's own addresses, one 172.x IPv4 and one IPv6, which nothing outside the container can reach. The NAS's real LAN address was there too, but marked remote. So was the proxy hostname.

That left every app at home with two "remote" options of equal standing, the LAN address and the proxy. Whichever answered first won. Some days that was the LAN, some days the proxy.

## Why bridge mode did this

In Docker bridge mode Plex only sees the container's network, so those are the addresses it reports as local. The real LAN address only existed because I'd added it to ADVERTISE\_IP, the setting that ends up in Plex's "Custom server access URLs".

plex.tv did something I didn't expect with that. It marked every custom connection as remote, even a private 192.168.x.x one. Advertising the LAN address by hand didn't make it local. It just made it one more remote entry racing the proxy.

That's what my resources list showed. I didn't find it written down anywhere in Plex's docs.

## The fix, in three parts

1. Host networking. I turned on host networking in the TrueNAS Plex app and kept the GPU and allowed networks settings as they were. The app redeploys when you change this, which also re-applies its Local Networks value, so check that list after.
2. A preferred network interface. With host networking and nothing else, Plex published a dozen Docker bridges plus an incus bridge as local. Setting the preferred interface to the NAS's LAN port (eno1 on mine) cut that down to the one address that matters.
3. Only the proxy in the advertised list. I trimmed ADVERTISE\_IP to just `https://plex.example.com:443`. A custom entry for the LAN address overrides the address Plex detects on its own, so leaving it in keeps the LAN route marked remote.

The third one felt backwards. I'd had three entries in there, including the LAN address, because more ways in seemed safer. Taking the LAN address out is what let Plex mark it local.

I set the preferred interface through the prefs endpoint from a machine on an allowed network:

```console
$ curl -X PUT "http://192.168.x.10:32400/:/prefs?PreferredNetworkInterface=eno1"

```

The same setting lives under Settings > Network with advanced settings shown, as "Preferred network interface". Either way, Plex only picks it up after a restart.

## Two connections in the list afterwards

Same resources call as before. Afterwards it showed exactly two connections:

```console
$ curl -s -H "Accept: application/json" -H "X-Plex-Token: $PLEX_TOKEN" \
    "https://plex.tv/api/v2/resources?includeHttps=1" \
  | jq -r '.[] | .connections[]? | "\(.local)  \(.uri)"'
true  https://192-168-x-10.<hash>.plex.direct:32400
false  https://plex.example.com:443

```

One local entry for the LAN, one remote entry for the proxy. The LG reconnected as a local client, Tautulli reconnected, both routes answered with a 200, and hardware transcoding still worked after the network mode change.

## One TV still went out through the proxy

A Sony TV, wired on the same subnet as the NAS, kept using the proxy anyway. The server side checked out. plex.tv listed the LAN connection as local, and the TV's own LAN probe reached Plex in 7 ms. Then 400 ms later it probed the proxy and stayed there.

Tautulli's history explained part of it. That TV had never played directly. Back when the router forward existed, its streams arrived from the router itself, hairpinning to the old public port. The fix hadn't broken anything on that TV. Its app had just never used the local route in the first place.

Clearing the Plex app's data on the TV fixed it. The next session came in from its LAN address, marked local and secure.

## What I'd tell myself before the cutover

Read the resources list before touching anything. Container addresses as the only local entries means bridge mode. The LAN address sitting there as remote means a custom URL is overriding detection. And if the server side all looks right and one client still won't go local, clear that app's data before digging any further.