Custom server access URLs not working?

With my ISP, I can’t use my public IP for remote access to Plex. But I have set up a relay that is working with every other internal service I have with the exception of Plex. In my server settings, I have entered ‘http://relay.[redacted].com’ into ‘Custom server access URLs’, and have verified that it is in my server list (https://plex.tv/api/resources):

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="4">
  <Device name="MediaCenter" product="Plex Media Server" productVersion="1.19.5.3035-864bbcbb7" platform="Windows" platformVersion="6.1 (Build 7601)" device="PC" clientIdentifier="[redacted]" createdAt="1358538449" lastSeenAt="1594306634" provides="server" owned="1" accessToken="[redacted]" publicAddress="[redacted]" httpsRequired="0" synced="0" relay="0" dnsRebindingProtection="0" natLoopbackSupported="0" publicAddressMatches="1" presence="0">
    <Connection protocol="http" address="192.168.1.90" port="32400" uri="http://192.168.1.90:32400" local="1"/>
    <Connection protocol="http" address="relay.[redacted].com" port="32400" uri="http://relay.[redacted].com:32400" local="0"/>
    <Connection protocol="http" address="[redacted]" port="32400" uri="http://[redacted]:32400" local="0"/>
  </Device>
</MediaContainer>

I can access it via web browser by going to http://relay.[redacted].com:32400, and everything seems to show and play just fine. Both when I’m on the same network as my Plex server (tested via laptop in Chrome) and not (tested via phone in Chrome with Wi-Fi turned off). The ‘Remote Access’ section of my server settings also shows ’ Fully accessible outside your network’, though the public IP address shown is the inaccessible one, not that of my relay server. But when I go to https://app.plex.tv/desktop, my server is not visible and I get the ‘Get Plex Media Server’ screen. I also see no media when using the Plex app on my Android phone with Wi-Fi turned off.

Any ideas whether the custom server access URLs are actually working, or if there is something more I can do to troubleshoot this?

So I managed to figure out that I could get client logs from https://app.plex.tv/desktop while it is attempting to connect. I’ve attached that output (logs, or it didn’t happen). There are two notable things that stood out:

  {
    "type": "log:message",
    "level": 1,
    "message": "[Connections] Prevented fallback to insecure connection for MediaCenter",
    "time": "2020-07-09T18:49:55.229Z"
  },
  {
    "type": "log:message",
    "level": 1,
    "message": "[Connections] Aborting connection test for MediaCenter at http://relay.[redacted].com:32400/media/providers due to mixed content prevention",
    "time": "2020-07-09T18:49:55.229Z"
  },

My server settings for secure connections is set to ‘Preferred’, not ‘Required’; so I’m not sure what is preventing fallback to insecure. And I don’t know what ‘Aborting connection … due to mixed content prevention’ means. Perhaps those are pointing to why my relay connection is not working?

plex_web.log (31.4 KB)

And one further tidbit. If I change the ‘Allow insecure connections’ on my Android app to ‘Always’ (it was ‘On same network’), then everything works. So maybe it’s just Plex Web, since I can no longer find a setting for insecure fallback for it.

You may need to get a valid security certificate for this domain name and add this to the Plex configuration.

1 Like

Brilliant…that did the trick. I created a PKCS12 file from the Let’s Encrypt certificates used for the relay. Now I just have to trick Plex into thinking the traffic from my local relay client is actually remote (Possible to treat local IP as remote?). Thanks again.

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