# \[Bug\] Plex claims: No access outside network = Reverse Proxy setups not supported

**URL:** https://forums.plex.tv/t/bug-plex-claims-no-access-outside-network-reverse-proxy-setups-not-supported/841832
**Category:** Remote Access
**Tags:** server-docker, server-unraid
**Created:** [May 21, 2023, 10:04pm UTC](https://forums.plex.tv/t/bug-plex-claims-no-access-outside-network-reverse-proxy-setups-not-supported/841832 "2023-05-21T22:04:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mgutt](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mgutt/32/138042_2.png) [@mgutt](https://forums.plex.tv/u/mgutt)
#### Post date: [May 21, 2023, 10:04pm UTC](https://forums.plex.tv/t/bug-plex-claims-no-access-outside-network-reverse-proxy-setups-not-supported/841832/1 "2023-05-21T22:04:19Z")

</div>

Server Version#: 1.32.1.6999 (official plex docker)  
Player Version#: 4.100.1  
Setup:

- Unraid Server with Plex container in bridge network
- Nginx Proxy forwards [media.example.com](http://media.example.com) to the Plex container on port 32400
- Router forwards all traffic on port 80/443 to Proxy’s 80/443

The “Custom Server Access URL” setting contains my domain:

![image](https://global.discourse-cdn.com/plex/original/4X/5/d/e/5de67c1b3dd9b2271e5f30d7acdafb7ed13ef6ff.png)

**Remote access check is broken for Reverse Proxy setups**

Since years, the remote access menu claims that my server is not accessible:

![image](https://global.discourse-cdn.com/plex/original/4X/c/2/f/c2f61c94670a075f8dab6ff6a9e1a4b7518a7737.png)

But remote access works absolute perfectly,.

I think the problem is that Plex’s remote check tries to connect to my server through my public IP + Port 443 and not through my domain + Port 443 as shown in the status:

 ![image](https://global.discourse-cdn.com/plex/original/4X/8/1/4/814cbdb9298672563bff4b43292c331d4989c413.png)

This can’t work as public IP + Port 443 hits my Proxy and the Proxy does not know where to forward the traffic as the domain is missing.

**plex.direct is broken for Reverse Proxy setups**

Another thing, same problem: Plex tries to connect to my server through public-ip.plex.direct::

```auto
/config/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log:May 21, 2023 19:01:22.346 [22524977843000] WARN - [HttpClient/HCl#25c] HTTP error requesting GET https://93-184-216-34.1234567890abcdef.plex.direct:443/identity (35, SSL connect error) (OpenSSL/3.0.8: error:0A000458:SSL routines::tlsv1 unrecognized name)

```

This can’t work, too, as the reverse proxy does not control the SSL certificates of those domains.

**Conclusion**

If the list of custom server access urls contains a domain, Plex must use this instead of the public IP or plex.direct domains. Or Plex needs a new option “Reverse Proxy Domain”. which overwrites them if set.

---

<div class="post-metadata">

### Author: ![retro1982](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@retro1982](https://forums.plex.tv/u/retro1982)
#### Post date: [June 27, 2023, 10:17pm UTC](https://forums.plex.tv/t/bug-plex-claims-no-access-outside-network-reverse-proxy-setups-not-supported/841832/2 "2023-06-27T22:17:18Z")

</div>

Hi,

first you are missing the port in [https://media.example.com](https://media.example.com)  
it should be [https://media.example.com:443](https://media.example.com:443) otherwise the standard port 32400 is used.

Also the ios app then uses as hostname ‘[media.example.com:443](http://media.example.com:443)’ (needed extra rule in my revers proxy (haproxy)).

Furthermore i disabled remote access in the gui, as far as i have understood, it the the remote access via their certificates.

So far all is working (ios client (besides the bug with only can transcode to 2MBit or play original quality), webclient (via own url or plex.tv) and android … the other apps i did not test so far)

Hope that helps.  
Nice Regards,  
Martin

---

<div class="post-metadata">

### Author: ![mgutt](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mgutt/32/138042_2.png) [@mgutt](https://forums.plex.tv/u/mgutt)
#### Post date: [June 29, 2023, 8:02am UTC](https://forums.plex.tv/t/bug-plex-claims-no-access-outside-network-reverse-proxy-setups-not-supported/841832/3 "2023-06-29T08:02:58Z")

</div>

> [@retro1982](#):
>
> otherwise the standard port 32400 is used.

For what? To connect to my server? If this would be the case, then how is it possible that my remote access worked in the past years. PS: I’ve added the port and it changes nothing.

EDIT: It’s not needed to set the port if it’s already set on the remote access page:  
[https://support.plex.tv/articles/200430283-network/](https://support.plex.tv/articles/200430283-network/)

> If you don’t specify a port, the port from your Remote Access page will automatically be used.

> [@retro1982](#):
>
> Furthermore i disabled remote access in the gui, as far as i have understood, it the the remote access via their certificates.

So enabling remote access, does not enable/disable remore access, instead it only enables plex.direct domains? If this is the case, why isn’t it mentioned here?  
[https://support.plex.tv/articles/200289506-remote-access/](https://support.plex.tv/articles/200289506-remote-access/)

> If you don’t need to access your content when away from home and won’t be sharing your content, it isn’t necessary to enable Remote Access.

I’d say Plex does not really support Reverse Proxy setups.

PS I’ve tested a stream host on my Proxy, which forwards all the traffic on port 32400 to Plex (of course I change the Remote Access Ports to 32400, too). By that the Remote Access becomes valid, but then I’m not able to use my own domain as I’m not able to provide the Let’s Encrypt certificate through the Plex Docker Container itself.

So my conclusion is that Plex does not really support Reverse Proxy Setups. It kinda works, but technically it was never implemented well.

---

<div class="post-metadata">

### Author: ![certuna](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@certuna](https://forums.plex.tv/u/certuna)
#### Post date: [June 29, 2023, 8:40am UTC](https://forums.plex.tv/t/bug-plex-claims-no-access-outside-network-reverse-proxy-setups-not-supported/841832/4 "2023-06-29T08:40:24Z")

</div>

> [@mgutt](#):
>
> So enabling remote access, does not enable/disable remore access, instead it only enables plex.direct domains?

The “Remote Access” setting enables plex.direct domains + port forwarding. If you’re using a proxy, PMS doesn’t do remote access, the proxy does. The traffic between the proxy ↔ PMS is all local.

The Remote Access connection check is a bit wonky indeed - it gives a lot of false negatives, for example it also only checks IPv4, if you have Remote Access working over IPv6, the check will say you have no remote access, while in fact you do.

---

<div class="post-metadata">

### Author: ![retro1982](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@retro1982](https://forums.plex.tv/u/retro1982)
#### Post date: [June 29, 2023, 8:44am UTC](https://forums.plex.tv/t/bug-plex-claims-no-access-outside-network-reverse-proxy-setups-not-supported/841832/5 "2023-06-29T08:44:39Z")

</div>

Hi,

> [@mgutt](#):
>
> If you don’t specify a port, the port from your Remote Access page will automatically be use

did not see that, so port 443 was used in your case.

> [@mgutt](#):
>
> So enabling remote access, does not enable/disable remore access, instead it only enables plex.direct domains? If this is the case, why isn’t it mentioned here?  
> [https://support.plex.tv/articles/200289506-remote-access/](https://support.plex.tv/articles/200289506-remote-access/)

As i understand (reading through the forum) and i have tested, this applies only for the plex.direct certificates.

In my setup with an HAProxy, everything works like a charm, every app or webapp, besides the online check which implies that the plex.direct domains are used. So they fail but remote access through the revers proxy still works. The only side effect i have seen with disabling the remote access is that the plex relays are not used any more in the case no direct connection can be stablished.

If wanted i can show you my working HAProxy config.

---

<div class="post-metadata">

### Author: ![mgutt](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mgutt/32/138042_2.png) [@mgutt](https://forums.plex.tv/u/mgutt)
#### Post date: [June 29, 2023, 10:18am UTC](https://forums.plex.tv/t/bug-plex-claims-no-access-outside-network-reverse-proxy-setups-not-supported/841832/6 "2023-06-29T10:18:49Z")

</div>

> [@retro1982](#):
>
> In my setup with an HAProxy, everything works like a charm

It does for me, too. But the remote access page provides wrong information, which was the main reason to open this bug report.

And finding only in the forums information of the behavior of plex.direct is strange, too. Why isn’t this mentioned in the documentation. I mean I’m using Plex since 10 years or so and there isn’t still an information regarding custom domains with reverse proxy setups which should be the most used scenario I think.

PS it seems plex.direct has been disabled since I disabled Remote Access. Now I’m waiting for feedback of my users if this has any downside for them.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [September 27, 2023, 10:19am UTC](https://forums.plex.tv/t/bug-plex-claims-no-access-outside-network-reverse-proxy-setups-not-supported/841832/7 "2023-09-27T10:19:47Z")

</div>

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