Can't connect to my remote Plex server (Hetnzer & Coolify)

Hello everyone,

I need help setting up my Plex server that I installed with Coolify. I’ve tried many things and have been browsing forums everywhere for 3 days now without success. I’m not a professional in this field, which is why I’m using Coolify.

I can detect my server in my Macos Plex app, but I can’t connect to it. I get this error message: “Server ‘name’ is unreachable. Check that the server is running, check the network as well, then try again.” I also don’t have access to the server configuration options in Plex (I think I had this option the very first time, then it disappeared when I rebuilt my server.). On the web app, the server appears, then it disappears 5 seconds later.. Here’s my configuration:

  • Coolify is installed on a dedicated VPS (Contabo),
  • Plex is installed on a dedicated server managed by Coolify (Hetzner),

The Coolify server seems to be working perfectly. I’m using a subdomain (server.example.com) that works with an A record in my DNS. I’ve configured the URL in Coolify settings. The proxy is active in Server > Coolify. The server is up to date according to the “Security” tab.

The Plex server is managed via SSH through Coolify. The Coolify URL is set in the general configuration. In the Proxy section, I haven’t touched anything: “Generate labels only for Traefik” is unchecked, “Override default request handler” is checked, “Redirect to (optional)” is empty.

The Traefik configuration is as follows:

name: coolify-proxy
networks:
  coolify:
    external: true
services:
  traefik:
    container_name: coolify-proxy
    image: 'traefik:v3.1'
    restart: unless-stopped
    extra_hosts:
      - 'host.docker.internal:host-gateway'
    networks:
      - coolify
    ports:
      - '80:80'
      - '443:443'
      - '443:443/udp'
      - '8080:8080'
    healthcheck:
      test: 'wget -qO- http://localhost:80/ping || exit 1'
      interval: 4s
      timeout: 2s
      retries: 5
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock:ro'
      - '/data/coolify/proxy/:/traefik'
    command:
      - '--ping=true'
      - '--ping.entrypoint=http'
      - '--api.dashboard=true'
      - '--entrypoints.http.address=:80'
      - '--entrypoints.https.address=:443'
      - '--entrypoints.http.http.encodequerysemicolons=true'
      - '--entryPoints.http.http2.maxConcurrentStreams=250'
      - '--entrypoints.https.http.encodequerysemicolons=true'
      - '--entryPoints.https.http2.maxConcurrentStreams=250'
      - '--entrypoints.https.http3'
      - '--providers.file.directory=/traefik/dynamic/'
      - '--providers.file.watch=true'
      - '--certificatesresolvers.letsencrypt.acme.httpchallenge=true'
      - '--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http'
      - '--certificatesresolvers.letsencrypt.acme.storage=/traefik/acme.json'
      - '--api.insecure=false'
      - '--providers.docker=true'
      - '--providers.docker.exposedbydefault=false'
    labels:
      - traefik.enable=true
      - traefik.http.routers.traefik.entrypoints=http
      - traefik.http.routers.traefik.service=api@internal
      - traefik.http.services.traefik.loadbalancer.server.port=8080
      - coolify.managed=true
      - coolify.proxy=true

In “Destinations”, I have 2 default Docker networks, 1 for my Coolify server, 1 for my Plex server, both networks are named “coolify”.

I then created a project and installed the Plex application from Coolify. In the logs everything looks OK (except for “libusb_init failed” which seems normal). I managed to “claim” the server. On Coolify I gave it a URL to access it (https://plex.example.com:32400/) and gave the service a name. Only “Enable Gzip Compression” and “Strip Prefixes” are checked. In “Environment Variables” I only specified the claim token and TZ. In the compose file, I tried adding network_mode: host, without success. “Connect To Predefined Network” is not checked.

Here my compose (The environment variables are set to Europe/Paris and I put the Plex claim) :

services:
  plex:
    image: 'lscr.io/linuxserver/plex:latest'
    network_mode: host
    environment:
      - SERVICE_FQDN_PLEX_32400
      - _APP_URL=$SERVICE_FQDN_PLEX
      - PUID=1000
      - PGID=1000
      - 'TZ=${TZ:-America/Toronto}'
      - 'PLEX_CLAIM=${PLEX_CLAIM}'
    volumes:
      - 'plex-config:/config'
      - 'plex-tv:/tv'
      - 'plex-movies:/movies'
    healthcheck:
      test:
        - CMD
        - curl
        - '-f'
        - 'http://localhost:32400/identity'
      interval: 2s
      timeout: 10s
      retries: 15

Has anyone encountered a similar issue with Plex and Coolify? Any suggestions on what I might be missing in my configuration? Thanks in advance for your help!

Plex server : Ubuntu 22.04
Coolify version v4.0.0-beta.420.6
Docker version 28.3.2, build 578ccf6
*Docker Compose version v2.38.2 *
Plex version : Latest
I have the Plex pass

Hetzner is not supported by Plex. There is no way to make it work.

Well, I didn’t expect that. Thank you for your quick response! :+1:

See Not Allowed to use Hetzner

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