Plex Server not reachable

Server Version#: 1.41.6.9685
Player Version#:
New installation of Plex over TrueNas Scale 25.04.
If I connect from the local IP address all works fine, I can add library scan and play movie.
If I try to access using plex.tv/desktop the server is unreachable.
If I change Secure connection from required to preferred, IP access keep working fine and access from plex.tv complain about not able to estabilish a secure connection to the server
I did try to re-install plex multiple times.

I can see some error on the logs but I’m not clear what is the cause netiher how to fix it

2025-04-29 20:20:46,611 (7efe8d9e4b38) : CRITICAL (runtime:1128) - Exception in thread named ‘refresh_servers’ (most recent call last):
File “/usr/lib/plexmediaserver/Resources/Plug-ins-d301f511a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py”, line 1126, in _start_thread
f(*args, **kwargs)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-d301f511a/System.bundle/Contents/Code/peerservice.py”, line 169, in refresh_servers
servers_el = self.get_servers_el()
File “/usr/lib/plexmediaserver/Resources/Plug-ins-d301f511a/System.bundle/Contents/Code/peerservice.py”, line 165, in get_servers_el
return XML.ElementFromURL(‘http://127.0.0.1:32400/servers’, cacheTime = 0)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-d301f511a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py”, line 344, in ElementFromURL
method=method,
File “/usr/lib/plexmediaserver/Resources/Plug-ins-d301f511a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/networkkit.py”, line 67, in _http_request
req = self._core.networking.http_request(url, *args, **kwargs)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-d301f511a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 352, in http_request
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-d301f511a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 119, in init
self.load()
File “/usr/lib/plexmediaserver/Resources/Plug-ins-d301f511a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 159, in load
f = self._opener.open(req, timeout=self._timeout)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 435, in open
response = meth(req, response)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 548, in http_response
‘http’, request, response, code, msg, hdrs)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 473, in error
return self._call_chain(*args)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 407, in _call_chain
result = func(*args)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
Plex Media Server Logs_2025-04-30_09-15-17.zip (258.0 KB)
Plex Media Server Logs_2025-04-30_09-15-17.zip (258.0 KB)

HTTPError: HTTP Error 503: Service Unavailable

For context, plex server was previously installed on TRuenas scale v.24 and was working fine with the same identocal network configuration.
What is that I’m missing?

Okay so reinstalling isn’t gonna fix your “unreachable” PMS install. So that’s not how you can fix this.

Your problem sounds like something changed in your network, I’m assuming plex has been working through UPnP, and that’s why sometimes it uses Plex Relay. I would disable UPnP (on the router) and Plex Relay (on PMS network settings) since this is the reason why it’s flaky. I’ve been there before. Sometimes it works, sometimes it doesn’t, with no rhyme or reason.

Disable those two, then set up your port forwarding. Verify that the port forwarding is working correctly by testing if you can ping your server from the outside. Plenty of websites have this tool. Make sure you disable those two things above because otherwise, there’s no point in testing port forwarding.

oh man that will be interesting :slight_smile: for reason that are way too long to explain and I agree it should be changed, the host is behing 2 router (well the first is a pfsense then there is an actual router)
will give a try, if it fail will force myself change the current configuration to a proper one

I assume you’re talking about a modem/router combo, also known as a gateway from your ISP? You should set that to Bridge Mode. Then on your pfsense make sure you add plex.direct to enable nat reflection. Remember to restart the gateway and your pfsense.

There’s a guide here about how to add plex.direct on pfsense. Reddit - The heart of the internet

No, I use my own router which is behind a pfsense fw, again it was not supposed to be this way and it need to be changed but physical location of some equipment discouraged me from change ti so far, and I triedto enable port forwarding on both devices but it doesn’t seems to work

This is called double port forwarding and it’s possible to do.

Just to confirm:

modem → pfsense → your own router → local computer

is that right?

I have fiber so no actual modem, but yes that is the chain

The solution was to move the host directly behind the pfsense fw disabling upnp on pfsense and enabling port forwarding . While behind the router there was no way to make it reachable

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