Plex and Tautulli connection issues

Hello

So i have a fresh install of both Plex and Tautulli, on my pretty much fresh Scale 24.10.2 system.
I am unable to get Tautulli to connect to my new Plex-server tough…

Plex question/issue:
I had to enable “host network” in my Plex installation to be able to connect to the server locally (LAN). If i have host network disabled, i will only get a “remote connection” connection (server has that “globe-icon”). Meaning i get slow speed for some reason, and the server transcodes the hell out of my stream.

  • Am i doing something wrong here? Or is this as intended?

I have amy old plex-server running on a windows-box, with same settings on server-side, like require secure connection, and so on, this works perfectly on LAN/WAN as it should.

Tautulli problem:
Tautulli is unable to connect to the new Plex-server.
When i select the server, and press “verify server” it shows this message:

Server found but unable to connect websocket.
Check the logs for errors.

In the logs, i get these errors:

2025-02-16 09:23:30	DEBUG	Tautulli WebSocket :: Leaving thread.
2025-02-16 09:23:30	INFO	Re-scheduled background task: Check for server response
2025-02-16 09:23:30	ERROR	Tautulli WebSocket :: [Errno -5] No address associated with hostname.
2025-02-16 09:23:30	INFO	Tautulli WebSocket :: Opening secure websocket.
2025-02-16 09:23:30	DEBUG	Tautulli Monitor :: Unable to read session list.
2025-02-16 09:23:30	DEBUG	Tautulli Monitor :: Checking for active streams.
2025-02-16 09:23:30	WARNING	Tautulli Pmsconnect :: Unable to parse XML for get_current_activity: 'NoneType' object has no attribute 'getElementsByTagName'.
2025-02-16 09:23:30	ERROR	Failed to access uri endpoint /status/sessions. Connection error: HTTPSConnectionPool(host='192-168-1-52.aa3a144c31dd45d991cf75e3c6063bf0.plex.direct', port=32400): Max retries exceeded with url: /status/sessions (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb50fcde410>: Failed to establish a new connection: [Errno -5] No address associated with hostname'))

I have not been able to figure out what im doing wrong here, so hoping for help from the experts here :smiley:

1 Like

Just some additional info.

When i try to connect Tautulli to the Plex-server from my old windows-machine, that instance of Tautulli connects fine to Plex-server on TrueNAS.

The instance of Tautulli on TrueNAS is unable to connect to the plex-server on windows as well.

So it seems it must be something with the Tautulli-setup/network/container on TrueNAS side…

Unfortunately, i have no idea where to look further.

Same problem here. I also checked through portainer to find a plex hostname but that doesnt work either.

The Problem is, that by default those 2 apps don’t share a common network, and with how docker networking works is, that container need to share an internal docker network for them to communicate with each other

in that feature request someone posted a script that lets app without a common network communicate with each other via dns name.
You could give that a try, others have reported that it works.

Thanks for providing the answer to why its not working :slight_smile:
No need to pull any more hair over it for now then :smiley:

Hmm, since OP has host networking enabled on the Plex server it shouldn’t need to be on the same bridge network as Tautulli for them to connect. The script I made probably will not help.

I think it’s more likely to be a DNS issue based on the logs. @CyberFluffy, can you configure Tautulli to use 192.168.1.52:32400 directly and see if that works? That should be the internal IP of your TrueNAS box according to the logs.

I think i tested this before, but i will install Tautulli again and test… Wont be today though, might be able tomorrow :slight_smile:

BTW in the Plex gui there’s an option to define local ip ranges. If you insert your lan ip range it should count as local stream, even if you don’t use host networking

Hello

Sorry for the very late response, but havent had time to test anything until now…

So, i managed to get Tautulli to work, however, i had to enable “host network” on the Tautulli install, and use 127.0.0.1 with an unsecure connection. Only then it will connect…

I have secure connection set to “Required” on my Plex server as well, so i dont know why its able to connect with unsecure, but here i am ^^

I will let it be as is for now, as it works, and test more when 25.04 is out in a stable version.

Thanks for all the suggestions so far :slight_smile: