# Plex Mobile App & Reverse Proxy

**URL:** <https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385>\
**Category:** Remote Access\
**Tags:** server-linux\
**Created:** [December 9, 2024, 3:50pm UTC](https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385 "2024-12-09T15:50:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckronengold](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ckronengold/32/4917_2.png) [@ckronengold](https://forums.plex.tv/u/ckronengold)\
**Post date:** [December 9, 2024, 3:50pm UTC](https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385/1 "2024-12-09T15:50:20Z")

</div>

I’ve read through a bunch of the forum threads regarding reverse proxy usage, and just want to confirm…

Accessing from a custom URL is easy from a web browser, but the apps are a different story. I can reach [Plex.mydomain.com](http://Plex.mydomain.com) with no problem, including from a browser on my phone with wi-fi off. But the app is showing my server as offline.

It seems like most threads on the issue come to an abrupt halt without any definitive resolution one way or the other. And I fully understand that @OttoKerner and @ChuckPa have explained why it doesn’t really accomplish much as far as security goes. But in the “because I just wanna see if I can” department, mobile apps and reverse proxy are a dead end?

---

<div class="post-metadata">

**Author:** ![kesawi](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/kesawi/32/319418_2.png) [@kesawi](https://forums.plex.tv/u/kesawi)\
**Post date:** [December 10, 2024, 4:56am UTC](https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385/2 "2024-12-10T04:56:35Z")

</div>

What addresses does the Plex API command `https://plex.tv/api/resources?includeIPv6=1&X-Plex-Token=<plextoken>` return for your Plex Media Server (You can find your Plex token using the information [in this support article](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/#toc-0))? If you post any of the information, make sure to redact the `accessToken` from the data as this is equivalent to your Plex account password.

Is `plex.mydomain.com` listed against the addresses for the server with the correct port?

Which certificate authority are you using for your reverse proxy and is it compatible with your Plex clients?

---

<div class="post-metadata">

**Author:** ![ckronengold](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ckronengold/32/4917_2.png) [@ckronengold](https://forums.plex.tv/u/ckronengold)\
**Post date:** [December 10, 2024, 1:50pm UTC](https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385/3 "2024-12-10T13:50:48Z")

</div>

> [@kesawi](#):
>
> What addresses does the Plex API command `https://plex.tv/api/resources?includeIPv6=1&X-Plex-Token=<plextoken>` return for your Plex Media Server

Not sure what you’re asking here. It returns the xml with all the connection info including my public IP address, my 127.0.0.1 address, and my internal 192.168.x.1 address.

```auto
<Device name="MyPlex" product="Plex Media Server" productVersion="1.41.2.9200-c6bbc1b53" platform="Linux" platformVersion="6.8.0-49-generic" device="Docker Container" clientIdentifier="###redacted###" createdAt="1712860219" lastSeenAt="1733776964" provides="server" owned="1" accessToken="xxxxxxxxxxxxxP" publicAddress="108.x.x.x" httpsRequired="0" synced="0" relay="0" dnsRebindingProtection="0" natLoopbackSupported="1" publicAddressMatches="1" presence="1">
<Connection protocol="http" address="192.168.0.x" port="32400" uri="http://192.168.0.x:32400" local="1"/>

```

I believe I’ve got the [plex.mydomain.com](http://plex.mydomain.com) set correctly, as it works from a web browser, just not the mobile apps. Certs are from LetsEncrypt. I presumed they were compatible, but never questioned it.

---

<div class="post-metadata">

**Author:** ![kesawi](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/kesawi/32/319418_2.png) [@kesawi](https://forums.plex.tv/u/kesawi)\
**Post date:** [December 10, 2024, 8:52pm UTC](https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385/4 "2024-12-10T20:52:14Z")

</div>

The XML tells you the information that your Plex mobile apps see when they ask Plex where your PMS is.

As you’ve published your token I can query the API and see that your custom `plex.mydomain.com` is not listed for any of your Plex servers only your localhost, internal Docker IPs, internal LAN IP and external WAN IP.

What this means is that your Plex clients don’t know that your custom domain exists. They will try to connect via the external WAN IP address instead. If they are using https they will get a certificate from your reverse proxy which doesn’t match what they’re expecting and will fail.

You need to set the full URL of your reverse proxy with your custom domain name in `Custom server access URLs` under the network settings for your server including whether it is http or https and the port it needs to connect to. It should then appear in the list of addresses returned for your server in the XML.

However, it will still list your external WAN IP so your mobile clients may try and connect to that first. To remove that disable remote access for your server and it will be removed from the list. Your custom server URL will still be there and will be flagged as the remote address for your mobile clients to use. It will also match the SNI that your clients are expecting in the certificate presented by the reverse proxy. Plex use Let’s Encrypt for the `*.plex.direct` domain so the CA should be accepted. You will still be able to remotely connect to Plex with remote access disabled, it will just not show it as active when you view the status.

Mobile devices on your local network will always continue to connect via local IP address.

---

<div class="post-metadata">

**Author:** ![ckronengold](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ckronengold/32/4917_2.png) [@ckronengold](https://forums.plex.tv/u/ckronengold)\
**Post date:** [December 10, 2024, 10:25pm UTC](https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385/5 "2024-12-10T22:25:24Z")

</div>

In the server settings, I’ve got “[Plex.mydomain.com:443](http://Plex.mydomain.com:443)” set as the custom address. In my reverse proxy, I’ve got it set for https and uses a Let’s Encrypt cert, so everything should be happy. When I use [Plex.mydomain.com](http://Plex.mydomain.com) in a browser, it works.

But I’m still not seeing my custom URL. I see the correct IP addresses for both, and their correct OS.

---

<div class="post-metadata">

**Author:** ![kesawi](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/kesawi/32/319418_2.png) [@kesawi](https://forums.plex.tv/u/kesawi)\
**Post date:** [December 10, 2024, 10:26pm UTC](https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385/6 "2024-12-10T22:26:26Z")

</div>

Try `https://plex.mydomain.com:443` as it needs to be the full URL otherwise it doesn’t know whether to use http or https. If you exclude the port then it defaults to 32400.

---

<div class="post-metadata">

**Author:** ![ckronengold](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ckronengold/32/4917_2.png) [@ckronengold](https://forums.plex.tv/u/ckronengold)\
**Post date:** [December 10, 2024, 10:34pm UTC](https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385/7 "2024-12-10T22:34:17Z")

</div>

Winner Winner Chicken Dinner.

That doesn’t seem overly complicated at all. Just need to do it “right.” Now it seems odd that there’s years of people asking the same question without a straightforward answer like the one you provided.

Able to connect to my server with Remote Access turned off from my phone with wi-fi turned off so its not a local connection.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![kesawi](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/kesawi/32/319418_2.png) [@kesawi](https://forums.plex.tv/u/kesawi)\
**Post date:** [December 10, 2024, 10:38pm UTC](https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385/8 "2024-12-10T22:38:21Z")

</div>

> [@ckronengold](#):
>
> That doesn’t seem overly complicated at all. Just need to do it “right.”

Doing it right solves around 90% of the problems people have here 😁

Glad to be able to assist.

---

<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:** [March 10, 2025, 10:38pm UTC](https://forums.plex.tv/t/plex-mobile-app-reverse-proxy/898385/9 "2025-03-10T22:38:25Z")

</div>

Closed on March 10, 2025, 10:38pm UTC

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