Can't connect to plex using localhost/IP

Hi,
I’m new to this Docker Environment and my Linux skill is pretty basic. Though, I managed to install and run Radarr, Overseerr successfully. I have installed Plex successfully (I guess) but couldn’t connect through localhost or IP. I use Portainer and I’m on windows. I used Docker compose.

version: "2.1"
services:
  plex:
    image: lscr.io/linuxserver/plex
    container_name: plex
    network_mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - VERSION=docker
      - PLEX_CLAIM=myclaim-token
    volumes:
      - /var/lib/docker/volumes/plex_config/_data:/config
      - /var/lib/docker/volumes/plex_tv/_data:/tv
      - /var/lib/docker/volumes/plex_movies/_data:/movies
    restart: unless-stopped

Here is the log.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 01-migrations: executing... 
[migrations] started
[migrations] no migrations found
[cont-init.d] 01-migrations: exited 0.
[cont-init.d] 02-tamper-check: executing... 
[cont-init.d] 02-tamper-check: exited 0.
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 40-chown-files: executing... 
[cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 45-plex-claim: executing... 
Temporarily starting Plex Media Server.
Waiting for Plex to generate its config
Waiting for database creation to complete...
Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign
Crash Uploader options (all are required):
  --directory arg       Directory to scan for crash reports
  --serverUuid arg      UUID of the server that crashed
  --userId arg          User that owns this product
  --platform arg        Platform string
  --platformVersion arg Platform version string
  --vendor arg          Vendor string
  --device arg          Device string
  --model arg           Device model string
  --sentryUrl arg       Sentry URL to upload to
  --sentryKey arg       Sentry Key for the project
  --version arg         Version of the product
  --allowRetries arg    Whether we will allow retries
Waiting for database creation to complete...
Waiting for database creation to complete...
Waiting for database creation to complete...
Waiting for database creation to complete...
Waiting for pref file creation to complete...
Critical: libusb_init failed
Waiting for pref file creation to complete...
Stopping Plex to claim server
      
Plex stopped
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  4360    0  4360    0     0   5436      0 --:--:-- --:--:-- --:--:--  5429
Server claimed successfully, navigate to http://serverip:32400/web to complete plex setup.
[cont-init.d] 45-plex-claim: exited 0.
[cont-init.d] 50-gid-video: executing... 
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 60-plex-update: executing... 
Docker is used for versioning skip update check
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 90-custom-folders: executing... 
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
Critical: libusb_init failed

I can see the server through this Plex but it says unable to connect securely.
I also notice there is no IP Address or Published Ports

Windows version - 21H2 OS build - 19044.1586
Docker Desktop version - 4.6.1 (76265)
Portainer version - 2.11.1

Please help!!!

You used: network_mode: host which would expose those on your host docker host, not the docker container. Which is why you don’t see them listed in Portainer. Did you try the IP of the computer and port 32400 in a web browser? That should load in the web browser on the same computer.

The message you’re getting in app.plex.tv is about your server port not being open in your firewall which is another issue to tackle, but from what you say here, you did everything correctly, you just need port forward 32400 to whatever IP that Plex Server is hosted, for it to say it can connect securely.

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