Plex Relay Not Working

I’m running my plex server on unRAID, I’m using PlexInc’s official docker, my internet connection is behind a Carrier Grade NAT (CGNAT). Because I’m behind a CGNAT I know I can’t get a direct connection to Server outside my home network, the thing is I’m not getting a relay (Indirect) connection either. Relay connection used to work for me but at some point in the last year or so it stopped working and I can’t get it to work. Please help me, I have plex pass and everything.

Edit:

I forgot to mention this in the original post but Plex remote access is enabled in settings.

1 Like

Is remote access still enabled? That is required (even if it doesn’t work) to enable Relay.

Yes, Plex remote access is enabled in settings.

It is the client apps that trigger the request to start Relay when they cannot reach the server normally. Test with different plex clients. restart the server. Make sure you run with latest beta 1.14.0.5468 as it fixed bug that impacted handling of events coming in

if you are still stuck
debug logging enabled

server logs
client app logs
https://support.plex.tv/articles/201869908-log-files/

Plex Media Server Logs_2018-11-23_00-38-44.zip (1.2 MB)
Pleax Android App logging.txt (1.1 MB)

I hope you can help.

Thank you

I can see a failure for the Plex Relay process to connect to local port 32401 which is dedicated for Relay

Nov 23, 2018 00:20:28.471 [0x14cbd3e37800] DEBUG - HttpServer: Listening on port 32400 with queue of 128 connections.
Nov 23, 2018 00:20:28.471 [0x14cbd3e37800] DEBUG - HttpServer: Listening on port 32401 with queue of 128 connections.

Nov 23, 2018 00:21:52.525 [0x14cbc4dda700] INFO - [PlexRelay] Allocated port 24459 for remote forward to localhost:32401

Nov 23, 2018 00:21:52.762 [0x14cbc3bfd700] ERROR - [PlexRelay] connect_to localhost port 32401: failed.

At this point i do not know why the Plex Relay service is failing to connect to port 32401

could you get the equivalent to netstat -a -b -n captured into a file and attach

I need to see what processes are listening to 32401 and what connections exist

netstat.txt (22.4 KB)

I got you netstat -a -p -n instead because I’m on linux, hope this helps.

Thank you very much - that was a netstat whilst Plex Media Server was running - version 1.14.0.5468?

Strange the listens are only on ipv6

could you disable iPv6 within server network settings and restart the server and retry and get me again the logs and netstat and if outcome is the same

could you also get me the output from
ifconfig -a

There may also be another complication. Relay traffic comes from outside to 443 - i see that goes to nginx

tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      9871/nginx: master
tcp6       0      0 :::32400                :::*                    LISTEN      8070/Plex Media Ser
tcp6       0      0 ::1:32401               :::*                    LISTEN      8070/Plex Media Ser
tcp6       0      0 :::443                  :::*                    LISTEN      9871/nginx: master

You could also try without the reverse proxy

Andoid App logging.txt (1.2 MB)
netstat.txt (17.7 KB)
Plex Media Server Logs_2018-11-23_18-37-16.zip (2.6 MB)
ifconfig.txt (5.3 KB)

These were taken while Plex Media Server version 1.14.0.5468 was running and just after an attempted remote connection. And I did disable ipv6 on unRAID and did a system reboot just to be safe.

I don’t really know about the reverse proxy, I did not intentionally run it, it might be something else on unRaid that might be causing it, I’ll look into how to disable it.

tower-diagnostics-20181123-1902.zip (104.3 KB)

I’m not sure if this is helpful or not but here is the diagnostics from my unRAID machine.

That is not what i meant

Plex Web / Settings / Server / Network / Show Advanced / and deselect Enable server support for IPv6 and save changes and restart plex media server and repeat test and capture of netstat and logs

Turning off ipv6 did solve the problem, now plex relay works. Do you still want the logs?

Yes please

I need all the evidence please - netstat / logs / ifconfig -a

Android App logging.txt (1.0 MB)
ifconfig.txt (5.4 KB)
netstat.txt (19.4 KB)
Plex Media Server Logs_2018-11-23_19-28-14.zip (1.8 MB)

Here you go

Thank you for your help

this has now been raised with the development team

Good to know and thanks for all your help, but one more thing, I still can’t get alexa to play my music.

Edit:

@sa2000
Should I make a new topic? And can I delete all the logs and attachments from my previous posts?

New topic with right tags for Alexa- May be it does not work with relay

I have a question - did the problem with relay that we fixed by disabling ipv6 exist with the 1.13.9.5456 public release ?

Relay does work on 1.13.9.5456 public release with ipv6 disabled.