[ updated 10-30-2016 | Upgraded Plex to plexmediaserver-1.1.4.2757-24ffd60.x86_64.rpm and CentOS ]
Recently I tried setting up a Plex server in a docker container. The first problem was the 127.0.0.1:32400 bind which required logging in locally or port forwarding. After doing this once, I realized that you could use the Preferences.xml file, but that meant that you couldn’t truly automate this/deploy it elegantly in a docker container. And what if you wanted to run other servers — for friends? I finally figured out how to do this in the most elegant way possible.
First – Grab your Unique Plex Access Token
Login at https://app.plex.tv/web/app with your username and password
Open your javascript console (in Chrome: View -> Developer -> JavaScript Console)
and type:
console.log(window.PLEXWEB.myPlexAccessToken);
Note the token, which will look like this: “PZwoXix8vxhQJyrdqAbY”
At this stage DO NOT click log out of your account until you register the new server. Otherwise your token will regenerate.
Once you register the server, it won’t matter after that if the token changes.
Grab my Docker Image
Check out: https://hub.docker.com/r/ventz/plex/
You can pull it down by doing:
1 2 3 |
docker pull ventz/plex |
Continue Reading →Plex server on a VPS Docker setup without port forwarding