Plex API Remote Acces

Plex Version 1.19.5.3035
OS: Ubuntu 20.04, Kernel 5.7

Is there anyway to reset the remote connection using the python PlexAPI? I am attempting to do so indirectly by enabling and re-enabling ManualPortMappingMode (and saving after each) but it seems like the mapping isn’t being applied. When I check the browser version, it is still using a random port not the specified port. Is there a way to apply this setting? Or better yet, an easy way to reset remote access that I was unable to find?

Unfortunately no.
There is a particular subset of the API which is kept as proprietary and that’s one of them.

Applying the port is proprietary as well? Thank you for the quick response.

It’s still port 32400 but the API call to talk to it is ‘the magic’ in Plex/Web.

Using the debugger in Chrome with the Web Client shows the following:

Issue a PUT statement like:

https://<IP_OF_PMS>:32400/:/prefs?PublishServerOnPlexOnlineKey=true&X-Plex-Client-Identifier=MyApi&X-Plex-Token=<INSERT_TOKEN_HERE>

Above will enable remote access

Issue a PUT like:

https://<IP_OF_PMS>:32400/:/prefs?PublishServerOnPlexOnlineKey=false&X-Plex-Client-Identifier=MyApi&X-Plex-Token=<INSERT_TOKEN_HERE>

will disable remote access

To find your token, look here:

1 Like

And adding to self here:

Issue a PUT like:

https://<IP_OG_PMS>:32400/myplex/refreshReachability?X-Plex-Client-Identifier=MyApi&X-Plex-Token=<INSERT_TOKEN_HERE>

Will make PMS check if it’s able to be online again

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