Plex. Docker on headless server

Hello all,

I am trying to run a plex server as a docker container. I can run it. I can access it on the web by server_ip:port, but I don`t have the admin side of the web interface. When I run the same container, with the same docker run command on my laptop, i can access the web with localhost, and i have the admin panel.

Apperantly plex do not allow admin from another host. However, my server is headless.

I tryed to redirect port with ssh ( ssh username@ip_of_server -L 32400:ip_of_server:32400 -N ). I can access the plex on the localhost, but still no admin section.

What are my option shere?

Server Version: Docker latest
Player Version: Web

Best regards.

P.S.:
Here is how i run the container:
docker run
-d
–name plex
-p 32400:32400/tcp
-p 3005:3005/tcp
-p 8324:8324/tcp
-p 32469:32469/tcp
-p 1900:1900/udp
-p 32410:32410/udp
-p 32412:32412/udp
-p 32413:32413/udp
-p 32414:32414/udp
plexinc/pms-docker

I will integrate this in my home docker-compose.yml later.

Please read the documentation.

Pay particular interest to the PLEX_CLAIM token

Host Networking
docker run \
-d \
--name plex \
--network=host \
-e TZ="<timezone>" \
-e PLEX_CLAIM="<claimToken>" \
-v <path/to/plex/database>:/config \
-v <path/to/transcode/temp>:/transcode \
-v <path/to/media>:/data \
plexinc/pms-docker```

Hello.

Thank You for the fast reply.

Yes, I have a token that I am using. I just did not put it for this test, as I did not think it was obligatory.
I added it and modified the docker run from the github.

docker run
-d
–name plex
-p 32400:32400/tcp
-p 3005:3005/tcp
-p 8324:8324/tcp
-p 32469:32469/tcp
-p 1900:1900/udp
-p 32410:32410/udp
-p 32412:32412/udp
-p 32413:32413/udp
-p 32414:32414/udp
-e TZ=“Europe/Sofia”
-e PLEX_CLAIM=“my_clain_token”
-e ADVERTISE_IP=“http://192.168.10.200:32400/
-h plex
plexinc/pms-docker

I guess I have a miss-configuration regarding the bridge networking, because when I run it with host networking, it works perfectly:

docker run
-d
–name plex
–network=host
-e TZ=“Europe/Sofia”
-e PLEX_CLAIM=“my_clain_token”
plexinc/pms-docker

Can you point me to a place where i can read more regarding plex and bridged networking.

Thank you in advance.

Best regards.

Bridge networking is tricky unto itself.

The reason is, you’re usually creating another NAT layer inside the host. That leads to a Double-NAT situation – which Plex won’t get through from the outside.

I’ve always found, if you’re using Docker for Plex – HOST networking is best.
There is one limitation with that – You can’t run two servers on the same host.

What you’d probably want to do in those cases is either LXC (abstract the OS) or VM (abstract the host). LXC is as light weight as docker (which only abstracts the app0.

Thank you for your assistance ChuckPa.

I will use Host networking

Best regards.

If this helps, this is my docker container for host networking

sudo docker run \
-d \
--name plex \
--network=host \
-e TZ="EST" \
-e PLEX_CLAIM="claim-XGjykysdXyzpHnVxAoh5" \
-e ADVERTISE_IP="http://<hostIPAddress>:32400/" \
-e PLEX_UID=1027 \
-e PLEX_GID=1027 \
-e PUID=1027 \
-e PGID=1027 \
-h lizum-docker \
-v /home/dockerplex:/config \
-v /home/dockerplex/tmp:/tmp \
-v /home/dockerplex/transcode:/transcode \
-v /vie:/data \
--device=/dev/dri:/dev/dri \
plexinc/pms-docker
[chuck@lizum ~.35]$ 

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