pms-docker image: host network and PLEX_CLAIM token
The official plexinc/pms-docker image recommends host or macvlan networking, which are easier to get working than bridge mode. The PLEX_CLAIM token, taken from plex.tv/claim, links the server to your account on first start; once the server is signed in, it is ignored. Plex listens on port 32400.
services:
plex:
image: plexinc/pms-docker:1.43.5.11079-b3b13e506
network_mode: host
environment:
- TZ=Europe/London
- PLEX_CLAIM=<claimToken>
volumes:
- ./config:/config
- ./transcode:/transcode
- /srv/music:/data/music
restart: unless-stopped
In bridge mode, publish 32400/tcp and the other ports listed in the image documentation, and set ADVERTISE_IP to the host address; access from the internet then needs a port forward you set up yourself.
Without Docker: the official installer
The Plex Downloads page offers the server for free for Windows, macOS, Linux and compatible NAS devices, and installation follows each system's usual method. Plex Media Server has no window of its own: you manage it from Plex Web at http://<server>:32400/web.
First setup and a Music library
Open Plex Web, sign in with your Plex account and name the server. On a headless machine started without a claim token, this setup only runs from http://localhost:32400/web; the image documentation describes an SSH tunnel to reach it from another computer.
Then, in the settings, under library management, add a library of the Music type and point it at your album folder (/data/music in the Docker example). Plex advises against using the root of a drive.
Listening away from home
Remote access is set on its own page of the server settings and requires a server signed in to your account. Plex first tries to open the port itself through UPnP or NAT-PMP. Otherwise, forward an external port on your router to port 32400 of the machine, then enter that external port in the option for setting the public port by hand.
Linking the app to Plex
In RoadSonic, add a Plex source: the “Connect my Plex account” button opens the Plex website, where you sign in before authorizing the app. Back in RoadSonic, the “Music servers” list shows each server with the names of its libraries: tap yours. Syncing starts right away, with no address or password to type.
Common error messages
“Plex reports no Plex Media Server for this account”: the server is linked to another Plex account, or to none. “None of its addresses is reachable from this iPhone”: check that the server is running, then that the iPhone is on the same network or that remote access works. A reachable server with no Music library open to this account is reported separately. If the Plex sign-in times out, simply start the authorization again.
