Ok, I will try to break the steps down a little, and I’ve edited my post as I’d missed a step.
You need to find your X-Plex-Token
using the steps in this article. It will be a 20 chracter long alpha-numeric string. For example aBcd1234efGHijkl5678
. Make sure that you access your PMS through the app.plex.tv
address.
You then need to use the token and enter the following URL into your browser https://plex.tv/api/resources?X-Plex-Token=aBcd1234efGHijkl5678
, substituting your token for the dummy one given here. This will show the IP addresses that plex.tv has registered for your PMS. Check that your local IP address for your PMS is listed.
Here’s an example of mine:
I have two servers, one called MARS and another called plex-test. Under the <Connection>
lines it gives the local and remote IP addresses for accessing the servers You’ll see at the end of these lines there’s a flag which will be either local="1"
or local="0"
which indicates whether it’s a local or remote IP address respectively. I also have a custom URL for my MARS server to get remote IPv6 access working (you won’t have this). It also shows that I have an active Plex Player.
When you found your token by viewing the XML, the URL in the browser was hopefully a plex.direct URL.. It will be in the format https://xxx-xxx-xxx-xxx.32digithexcode.plex.direct:32400/
where xxx-xxx-xxx-xxx
is your IP address with the .
replaced by a -
and the 32digithexcode
is a unique 32 digit hexidecimal code assigned by Plex to your PMS, and 32400 is the port used to connect to PMS. This is mine.
So for example if your local PMS IP address is 192.168.1.10
, your remote PMS IP address is 123.123.123.123
and the unique PMS code is bf658e1d611416eba666c369b045b064
then it would appear as either https://192-168-1-10.bf658e1d611416eba666c369b045b064.plex.direct:32400/
for your local PMS IP and https://123-123-123-123.bf658e1d611416eba666c369b045b064.plex.direct:32400/
for your PMS remote IP.
If it isn’t showing that type of address, but just an IP address then you can find the 32-bit hex code for your PMS by examining the SSL certificate of your PMS when you access it directly rather than through app.plex.tv. This guide shows you how to get the details of the SSL certificate for any web server which you can use to get the details of your plex server. The common name (CN) will be your PMS plex.direct subdomain and includes the 32 digit hex code for your PMS. An example for my PMS when I access the local IP via Microsoft Edge Browser below and view the certificate. The PMS plex.direct subdomain is highlighted.
So, now you know your PMS local plex.direct URL, which keeping with my example here is https://192-168-1-10.bf658e1d611416eba666c369b045b064.plex.direct:32400/
you can post it in your brower and see if it navigates to your PMS. Let us know whether it does or doesn’t work.
A further test is to open a command prompt and type the comment nslookup 192-168-1-10.bf658e1d611416eba666c369b045b064.plex.direct
, substituing in your own plex.direct PMS server address.
If it works, it willl return the local IP address of your server, which in this example is 192.168.1.10
. If it doesn’t work it will error, which indicates the issue is likely to do with DNS rebinding protection. An example of a successful lookup below.
Based on what outcomes you get from both tests will depend on what is suggested next.