guide

Plex on Hetzner: Direct Play vs Transcoding Setup

Install Plex on Hetzner Cloud, choose CPU for Direct Play or transcoding, configure Remote Access, and protect metadata and media backups.

Last verified:

Hetzner Cloud can be a practical Plex host when most playback is Direct Play and you are willing to manage Linux, storage, access and recovery yourself. Do not choose a plan from RAM alone. A client that cannot play the source codec, container, bitrate or subtitles may force Plex to transcode, and Plex describes video transcoding as CPU intensive.

This guide uses current Plex and Hetzner documentation. It is not a stream-count benchmark and does not claim that a particular Hetzner plan can transcode a fixed number of videos.

Decide the playback path before choosing a server

Playback pathServer workWhat to verify before ordering
Direct PlayPlex sends the original file and server work is close to zeroClient codec support, original bitrate, outbound transfer and media storage
Direct StreamPlex repackages compatible audio and video into another containerClient container support, subtitles and available bandwidth
Video transcodePlex converts video or audio for the clientSource codec, resolution, subtitles, simultaneous viewers and sustained CPU access

Plex notes that an incompatible subtitle stream can trigger a full video transcode even when the video itself is compatible. Test representative files with the actual TVs, phones and remote connections that will use the server.

Hetzner separates shared-resource plans from dedicated-resource plans. Its shared plans provide baseline CPU performance with temporary burst capacity. Dedicated-resource plans provide continuous and predictable CPU access and are the more defensible starting point for repeated software transcoding. Direct Play and occasional light work can start on shared resources, but the result still needs to be measured with your files.

Create the Hetzner Cloud server

In the Hetzner Console, create a server and make these choices deliberately:

  1. Package architecture: Confirm that Plex’s current repository provides a package for the server architecture you select. Do not assume that every Hetzner architecture has the same package support.
  2. Operating system: Use a currently supported Ubuntu or Debian release and install its security updates.
  3. SSH key: Add the administrator’s public key during server creation. Hetzner notes that a key cannot be added through the Console after the server is created.
  4. Network: Add the public IP version required by your viewers. A server without public IPs must use a private network and cannot use a Hetzner Cloud Firewall.
  5. Firewall: Allow SSH only from the administrator’s address or trusted network. Add Plex traffic only when Remote Access is required.
  6. Storage: Decide whether media stays on the server disk, an attached Volume or another storage system. Keep the Plex database and temporary transcode space in the capacity calculation.
  7. Backups: Hetzner server Backups protect the server disk, but not attached Volumes. Plan a separate copy for anything stored on a Volume.

Hetzner’s current server creation guide documents plan type, location, image, networking, SSH keys, Volumes, Firewalls and Backups as separate choices. Check the current configuration and region at checkout rather than copying a fixed price into the deployment plan.

Install Plex from the current repository

Plex changed its Linux repositories starting with Plex Media Server 1.43.0. Do not install the old versioned package that appeared in earlier copies of this guide. For a new Ubuntu or Debian server, the current official manual repository procedure is:

sudo apt update
sudo apt install -y curl gnupg2
sudo install -d -m 0755 /etc/apt/keyrings

curl -L https://downloads.plex.tv/plex-keys/PlexSign.v2.key \
  | sudo gpg --yes --dearmor \
  -o /etc/apt/keyrings/plexmediaserver.v2.gpg

echo "deb [signed-by=/etc/apt/keyrings/plexmediaserver.v2.gpg] https://repo.plex.tv/deb/ public main" \
  | sudo tee /etc/apt/sources.list.d/plex.list

sudo apt update
sudo apt install -y plexmediaserver
sudo systemctl enable --now plexmediaserver

Verify that the service is active:

sudo systemctl status plexmediaserver --no-pager

On Ubuntu and Debian, Plex normally runs as the restricted plex user. That account needs read and execute permission for every directory in the media path. Avoid making the media tree world-writable merely to solve a permissions error.

Complete the first setup through an SSH tunnel

Plex’s local setup address is http://127.0.0.1:32400/web. On a remote VPS, forward that address through SSH instead of exposing the administration page broadly for the first setup:

ssh your_server_ip -L 8888:localhost:32400

With the SSH session open, visit http://localhost:8888/web on your own computer. Sign in, claim the server and add a library that points to a directory the plex user can read.

The tunnel handles administration from your machine. It does not enable playback from other networks.

Configure Remote Access only when needed

Plex enables Remote Access from Settings > Server > Remote Access. Plex requires the server to be signed in. If a manual external port is used, Plex says it must reach internal port 32400, and the same external port must be selected with Manually specify public port in the Plex Web App.

A Hetzner Cloud Firewall drops new inbound traffic unless a rule explicitly allows it. Keep that implicit deny behavior and add only the rule required for the chosen Plex access path. Do not open ports 80 and 443 unless another service on this server actually uses them.

After enabling Remote Access, verify the connection from a network outside the server’s data center. A green status in the settings page is useful, but a real remote playback attempt also tests account access, bandwidth and client compatibility.

Verify Direct Play and transcoding separately

Use representative files rather than assuming that one successful video proves the server is sized correctly.

  1. Play one file that the client can Direct Play and confirm the playback decision in the Plex dashboard.
  2. Play a file or subtitle combination that requires a video transcode.
  3. Observe whether the transcode stays ahead of playback without sustained buffering.
  4. Repeat with the highest number of simultaneous viewers you actually expect.
  5. Check disk use for the Plex database and temporary transcode files.
  6. Restart the server and verify that Plex returns automatically.

If Direct Play succeeds but software transcoding cannot keep up, change the playback requirement or move to predictable CPU capacity. Adding RAM does not fix insufficient transcode CPU.

Back up metadata and media as separate recovery sets

Plex’s Linux data directory on Ubuntu and Debian is normally:

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/

That directory contains library metadata, view state and settings, including Preferences.xml. Plex recommends backing up the main data directory and keeping the archive outside the directory Plex manages. Media files are a separate data set and may need a different backup schedule because of their size.

Use this recovery boundary:

DataMinimum protectionImportant Hetzner boundary
Plex database, metadata and settingsConsistent off-server copy of the Plex data directoryCovered by a server Backup only when stored on the server disk
Media libraryIndependent copy or a documented re-acquisition planAttached Volumes are excluded from server Backups and Snapshots
Deployment recordPackage source, firewall rules, mount points and permissionsA disk copy does not document external firewall or network choices

Test one restore to a separate location. A successful backup job proves that files were copied; it does not prove that the Plex database, permissions, media paths and server identity can be recovered.

Hetzner decision and affiliate disclosure

Choose Hetzner only if its current region, CPU model, storage path, transfer terms and operational responsibility match the playback test above. The following is an affiliate link. SelfHostVPS may receive compensation if you order through it, at no added cost to you. That relationship does not change the technical criteria in this guide.

Check the current Hetzner Cloud configurations

Frequently asked questions

Is a shared CPU Hetzner server enough for Plex?

It can be enough when clients mostly Direct Play or Direct Stream. Hetzner describes shared plans as baseline CPU with temporary burst capacity, while Plex describes video transcoding as CPU intensive. Repeated software transcoding needs an actual playback test and may justify dedicated CPU resources.

Must port 32400 be open during installation?

No. Complete the first setup through an SSH tunnel to the server’s local port 32400. Open the required Plex traffic only when Remote Access is needed, then confirm the setting from an external network.

Does a Hetzner server Backup include my media Volume?

No. Hetzner states that server Backups and Snapshots do not include attached Volumes. Back up media stored on a Volume separately.

What should a Plex restore test include?

Restore the Plex data directory with its permissions, reconnect the media path, start the service and confirm the library, view state and one playback path. Keep the backup archive outside the directory Plex manages.

Sources and review method

This guide was substantively reviewed on 1 November 2026 against current Plex and Hetzner documentation. It is a documentation-based installation and recovery guide. No hands-on stream-count, uptime, network or support-response test is claimed.