Local plex server shows up as remote only, with remote settings applied when using Plex Web.

I’m not really sure what’s going on, but I moved my server to another computer about a month ago, and my new server shows up as “remote”. I can’t seem to figure out why that’s the case, and what’s worse is that since the server shows up as remote, even though I am running it locally, it uses the remote compression settings which is kind of an annoyance. Can anyone tell me what I did wrong and how to fix it?

That arises if you have DNS Rebinding Protectionnin your router and plex web app is unable to get to the server securely using the local IP plex.direct secure connections URL. It is able to use secure connections using the public IP plex.direct URL.

You can price this by looking at the. Connection strings and doing an nslookup test in each. The connection strings you will see in the xml you get from
https://plex.tv/pms/resources.xml?includeHttps=1

You can read about DNS Rebinding in paragraph at the bottom of this support page https://support.plex.tv/hc/en-us/articles/206225077

I think I can fix this, after several hours about reading stuff I’d never dealt with before… but what’s different that it’s changed? I even think I remember this happening to my previous server in late Feb/early April, and it hasn’t changed since. There was an update and all of a sudden, I had issues playing content in my web browser locally. Are there no settings in plex that can fix this? Even when I turn off the secure connection requirements, it doesn’t work.

I have an AC68U with Asuswrt Merlin firmware. I guess I will have to activate scripting and write a config file. Just seems so… crazy, when it worked fine for years with the same router?

After you disable secure connections in the server network settings do a sign out and sign in within settings / server / general.

Then sign out and sign in within plex web app (top right corner)

When you get the xml from https://plex.tv/pms/resources.xml?includeHttps=1 there should no longer be any reference to plex.direct url’s . If you are on the same network subnet, I would not expect it to show as remote anymore. You can get debug / even verbose logging out of plex web app to see what IP addresses it is trying and which ones fail - see https://support.plex.tv/hc/en-us/articles/201611836-Plex-Web-App-Logs

Do you have more than one network interface on the server?

Alright, maybe this will help. I removed my server from the device list and it immediately went from Remote to Local(Nearby) once again. As soon as I reclaim it, it turns remote. Thank you for your continued help, by the way.

I’m at a total loss.

@gusvjr said:
Alright, maybe this will help. I removed my server from the device list and it immediately went from Remote to Local(Nearby) once again. As soon as I reclaim it, it turns remote. Thank you for your continued help, by the way.

I’m at a total loss.

Vey some logs - server logs and Plex web log
You can edit your 24.xx.xx.xx public IP in the logs before you upload - just leave he first 3 octets and then put X.x

See support.plex.tv for reporting issues and logs

[
  {
    "type": "info",
    "host": "127.0.0.1:32400",
    "userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36",
    "browser": {
      "id": "chrome",
      "name": "Chrome",
      "version": "50.0",
      "webkit": true,
      "platform": "Windows",
      "platformID": "windows",
      "platformVersion": "7 / Server 2008 R2",
      "platformModifierKey": "ctrl"
    },
    "version": "2.6.1",
    "primaryServerUrl": "http://137.217.15.101:32400/",
    "primaryServerAuthToken": true,
    "username": "g****",
    "cloudUrl": [
      {
        "scheme": "https",
        "address": "plex.tv",
        "uri": "https://plex.tv",
        "testState": "connected",
        "isBundled": false,
        "isFallback": false,
        "isRelayed": false,
        "isPossiblyCrossNetworkProtected": false,
        "isUntested": false,
        "isPending": false,
        "isConnected": true,
        "isUnauthorized": false,
        "isUnavailable": false,
        "isFailed": false,
        "isAborted": false,
        "isLoopback": false,
        "isPrivate": false,
        "isHttps": true,
        "isSecure": true,
        "isPlexDirect": false,
        "currentTest": null,
        "sources": [
          {
            "id": "internal"
          }
        ]
      }
    ],
    "cloudAccessToken": true
  }
]
myPlexAccessToken is not in VolatileWebStorage
connections is not in PersistentWebStorage
skipSignIn is not in PersistentWebStorage
settingsv2 is not in PersistentWebStorage
experience is not in PersistentWebStorage
myPlexAccessToken is not in PersistentWebStorage
[UserManager] autoLogin false
[Servers] Initializing...
[Commands] Executing testServerConnection
[Servers] Waiting for initial servers = [Loopback], plex.tv
[Primary Server] Waiting to set the primary server
[Primary Server] Waiting for any owned server to connect
[Servers] Finished initialization
[Connections] Testing connection for [Loopback] at http://127.0.0.1:32400/
[Connections] Testing connection for plex.tv at https://plex.tv/pms/:/ip
Failed to load resource: the server responded with a status of 406 (Not Acceptable)
[Connections] [Loopback] is unavailable at http://127.0.0.1:32400/ (Status 406)
[Connections] All connections to [Loopback] failed
[Servers] Waiting for initial servers = plex.tv
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
No cast extension found
[Connections] plex.tv connected at https://plex.tv/pms/:/ip
[Connections] Active connection to plex.tv is https://plex.tv
myPlexAccessToken is not in PersistentWebStorage
[Servers] Found all servers = plex.tv
[Primary Server] Waiting for any eligible server to connect
[Primary Server] Waiting for any eligible server
[Commands] Executing signIn
[Servers] Finding resources through plex.tv
[Primary Server] Waiting for any owned server to connect
[Servers] Waiting for additional resources from plex.tv
[CloudServerEventManager] Opening server event connection to plex.tv at wss://pubsub.plex.tv/sub/websockets/4542936/c90g6mltgnforzp0vk1brzfr?X-Plex-Token=zYShsgrnp7RhKAAm8LRy
No type was found for undefined
[Servers] Excalibur was found through plex.tv
[Commands] Executing testServerConnection
No type was found for undefined
[Servers] Waiting for additional resources from plex.tv
No type was found for undefined
[Servers] JT01 was found through plex.tv
[Commands] Executing testServerConnection
No type was found for undefined
[Servers] Waiting for additional resources from plex.tv
No type was found for undefined
[Servers] Waiting for additional resources from plex.tv
[Servers] Found 3 resources through plex.tv
[Servers] Found all servers = plex.tv
[CloudServerEventManager] Opened server event connection to plex.tv at wss://pubsub.plex.tv/sub/websockets/4542936/c90g6mltgnforzp0vk1brzfr?X-Plex-Token=zYShsgrnp7RhKAAm8LRy
[Connections] Testing connection for Excalibur at http://137.217.15.101:32400/
[Connections] Testing connection for Excalibur at http://24.xxx.x.xx:32400/
[Connections] Testing connection for JT01 at https://24-xxx-xx-xxx.e63690623a014174a3a06b450ce3e5c4.plex.direct:32400/
[Connections] Testing connection for JT01 at https://192-168-1-4.e63690623a014174a3a06b450ce3e5c4.plex.direct:32400/
[Connections] Excalibur connected at http://137.217.15.101:32400/
[Connections] Active connection to Excalibur is http://137.217.15.101:32400
[Servers] Found all servers = Excalibur, plex.tv
[MediaServerEventManager] Opening server event connection to Excalibur at ws://137.217.15.101:32400/:/websockets/notifications?X-Plex-Token=zYShsgrnp7RhKAAm8LRy
[Primary Server] Excalibur is now the primary server
No type was found for undefined
[Connections] Excalibur connected at http://24.xxx.x.xx:32400/
[MediaServerEventManager] Opened server event connection to Excalibur at ws://137.217.15.101:32400/:/websockets/notifications?X-Plex-Token=zYShsgrnp7RhKAAm8LRy
[Commands] Executing checkForServerUpdates
[Connections] JT01 connected at https://24-xxx-xx-xxx.e63690623a014174a3a06b450ce3e5c4.plex.direct:32400/
[Connections] Active connection to JT01 is https://24-xxx-xx-xxx.e63690623a014174a3a06b450ce3e5c4.plex.direct:32400
[Servers] Found all servers = Excalibur, plex.tv, JT01
[MediaServerEventManager] Opening server event connection to JT01 at wss://24-xxx-xx-xxx.e63690623a014174a3a06b450ce3e5c4.plex.direct:32400/:/websockets/notifications?X-Plex-Token=G4Rcp5hsKpFpYZhyiYbk
[MediaServerEventManager] Opened server event connection to JT01 at wss://24-xxx-xx-xxx.e63690623a014174a3a06b450ce3e5c4.plex.direct:32400/:/websockets/notifications?X-Plex-Token=G4Rcp5hsKpFpYZhyiYbk
[Connections] Testing all 1 connection(s) for [Loopback]
[Servers] Waiting for initial servers = [Loopback]
[Commands] Executing testServerConnection
[Connections] Testing all 2 connection(s) for Excalibur
[Servers] Waiting for initial servers = [Loopback]
[Commands] Executing testServerConnection
[Connections] Testing all 1 connection(s) for plex.tv
[Commands] Executing testServerConnection
[Connections] Testing all 2 connection(s) for JT01
[Servers] Waiting for initial servers = [Loopback]
[Commands] Executing testServerConnection
[Connections] Testing connection for Excalibur at http://137.217.15.101:32400/
[Connections] Testing connection for Excalibur at http://24.xxx.xxx.xxx:32400/
[Connections] Testing connection for plex.tv at https://plex.tv/pms/:/ip
[Connections] Testing connection for [Loopback] at http://127.0.0.1:32400/
[Connections] Excalibur connected at http://137.217.15.101:32400/
[Servers] Waiting for initial servers = [Loopback]
[Connections] Testing connection for JT01 at https://24-xxx-xx-xxx.e63690623a014174a3a06b450ce3e5c4.plex.direct:32400/
[Connections] Excalibur connected at http://24.xxx.x.xx:32400/
Failed to load resource: the server responded with a status of 406 (Not Acceptable)
[Connections] [Loopback] is unavailable at http://127.0.0.1:32400/ (Status 406)
[Connections] All connections to [Loopback] failed
[Servers] Waiting for additional resources from plex.tv
[Connections] JT01 connected at https://24-xxx-xx-xxx.e63690623a014174a3a06b450ce3e5c4.plex.direct:32400/
[Servers] Waiting for additional resources from plex.tv
[Connections] plex.tv connected at https://plex.tv/pms/:/ip
[Connections] Active connection to plex.tv is https://plex.tv
Cache overflow, size: 22
[Commands] Executing checkForServerUpdates
[Connections] JT01 is unavailable at https://192-168-1-4.e63690623a014174a3a06b450ce3e5c4.plex.direct:32400/ (Status 0)
[Connections] Prevented fallback to insecure connection for  JT01

So I decided to see whether the problem was isolated to my router and plugged in the network cable directly from my modem to my PC, logged off plex web/app, reset my connection to use my ISP’s settings, rebooted modem, rebooted PC, and the server still displays as Remote. That means it’s not the router at least, I assume? I’ve no firewall on, either.

@gusvjr said:
So I decided to see whether the problem was isolated to my router and plugged in the network cable directly from my modem to my PC, logged off plex web/app, reset my connection to use my ISP’s settings, rebooted modem, rebooted PC, and the server still displays as Remote. That means it’s not the router at least, I assume? I’ve no firewall on, either.

The 406 error is a clue here

Connections] Excalibur connected at http://137.217.15.101:32400/
[Servers] Waiting for initial servers = [Loopback]
[Connections] Testing connection for JT01 at https://24-xxx-xx-xxx.e63690623a014174a3a06b450ce3e5c4.plex.direct:32400/
[Connections] Excalibur connected at http://24.xxx.x.xx:32400/
Failed to load resource: the server responded with a status of 406 (Not Acceptable)
[Connections] [Loopback] is unavailable at http://127.0.0.1:32400/ (Status 406)
[Connections] All connections to [Loopback] failed

It is looking like the issue identified recently and summarized here
https://forums.plex.tv/discussion/comment/1171939/#Comment_1171939

This stops loopback from being used.

OK I know now why it is showing remote and not nearby

The 127.0.0.1 connection is failing with error 406 because of the issue identified here


You must have a pin on your master admin account or managed users in place activating Plex Home

The 137.217.15.xx is not detected as a local private IP address simply because it is in the range for private IP Addresses - see https://en.wikipedia.org/wiki/Private_network

Ok, sa2000. I removed my pin and it did nothing, however, when I changed my routers IP range to be within the standardized and approved range for local private ips, and reset all of my connection related stuff, loopback is no longer failing (knock on wood). My server is now showing up as local again. Thank you SO much. I don’t know how I can thank you. I genuinely mean it, I don’t know what you get out of being so helpful, but it means the world to me that someone was willing to take the time to help me resolve my issue with no obvious benefit to his self. Again, thank you.

@gusvjr said:
Ok, sa2000. I removed my pin and it did nothing, however, when I changed my routers IP range to be within the standardized and approved range for local private ips, and reset all of my connection related stuff, loopback is no longer failing (knock on wood). My server is now showing up as local again. Thank you SO much. I don’t know how I can thank you. I genuinely mean it, I don’t know what you get out of being so helpful, but it means the world to me that someone was willing to take the time to help me resolve my issue with no obvious benefit to his self. Again, thank you.

Thank you for the kind words

Dismantling Plex Home (removal of pin AND removal of managed users) should have stopped the error 406 on localhost. But you have managed to switch to a true private address ip range and this has done it.

If you have secure connections then it may switch again to the public IP address if your router ends up rejecting local ip plex.direct DNS lookups (DNS Rebinding protection)

Oh, I see. I didn’t remove managed users. If it happens again, and I wanna go this route can I then go and readd my pin and home members afterwards, or will that re-create the problem because it’s something that has to be fixed on Plex’s end? Anyways, thank you so much. Going to consider this resolved for now.

Hopefully plex web version 2.6.2 will fix the 406 error issue for localhost anyway

Ok, thanks boss!!! ^:)^