Unable to claim docker Plex Media server

I have installed Plex Media server on a Hyper V Linux VM using Docker compose. I am trying to claim the new server by navigating to the VM’s IP http://192.168.1.62:34200/web from my local MS Server 2016 but I am unable to find it to claim.

If I go to https://app.plex.tv/desktop it advises “An insecure media server has been found on your network. Reload app insecurely”. It then takes me to an internal docker address http://172.18.0.12:32400/web which does not load.

This is what I am using in my docker-compose.yml .

  plexms:
    container_name: plexms
    restart: always
    image: plexinc/pms-docker
    volumes:
      - ${USERDIR}/docker/plexms:/config
      - ${USERDIR}/docker/plex_tmp:/transcode
      - ${USERDIR}/mnt:/media
      - ${USERDIR}/docker/shared:/shared
    ports:
      - "32400:32400/tcp"
      - "3005:3005/tcp"
      - "8324:8324/tcp"
      - "32469:32469/tcp"
      - "1900:1900/udp"
      - "32410:32410/udp"
      - "32412:32412/udp"
      - "32413:32413/udp"
      - "32414:32414/udp"
    environment:
      - TZ=${TZ}
      - HOSTNAME="Docker Plex"
      - PLEX_CLAIM="claim-xxxxxx"
      - PLEX_UID=${PUID}
      - PLEX_GID=${PGID}
      - ADVERTISE_IP="http://192.168.1.62:32400/"

I have tried multiple times using different claim codes to no avail. Please can someone advise what I am doing wrong?

Please see my comments in this recent discussion:

1 Like

I have tried removing the docker & volumes then re-trying with a new claim code to no avail.

I’ve just tried following these steps but unable to get it to work.

Windows
If you’re using Windows on your local system and your server is on Linux or OS X, you’ll need to use an application such as Putty that can create the SSH tunnel for you. You can use instructions like these for setting up the Putty/SSH connection. If following that, you would use this information:

Gateway: ip.address.of.server
Source Port: 8888
Destination: localhost:32400
Once you have the SSH tunnel set up:

Open a browser window
Type http://localhost:8888/web into the address bar
The browser will connect to the server as if it were local and load Plex Web App
If your server is running Windows, then you could do a standard Remote Desktop session or similar.
1 Like

Do you know how to open a bash in your container (e.g. docker exec -it <container-id> /bin/bash)? Would you like to try my claim script? :slight_smile: The usage is rather simple and described on the github page. Just download the script in your container, e.g. with wget https://github.com/uglymagoo/plex-claim-server/raw/master/plex-claim-server.sh). You have to restart your container afterwards.

Please then review your Preferences.xml file in /config/Library/Application Support/Plex Media Server/. It should contain a PlexOnlineToken and your account name for example.

I’ve managed claim it using the SSH tunnel once I got my head round it.

It’s now accessible on http://192.168.1.62:32400 but showing indirect via https://app.plex.tv/desktop. Any ideas?

That all depends on your Hyper V network configuration. In a nutshell: TCP connections to port 32400 on your public WAN IP (IP of your MS Server 2016?) have to be forwarded to port 32400 of your Docker container. What’s between your MS Server and the internet?

1 Like

Figured it out. I’d previous been running PMS on Windows which auto maps the port via upnp. I’ve just manually forwarded the port and all is now working. Thanks for all your help @drmagoo!

1 Like

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