Independent testing Updated April 2026 387 self-hosting guides 5 VPS providers tested

guide

How to Self-Host Plex on Hetzner (2026 Guide)

Learn how to self-host Plex on Hetzner with a detailed 2026 guide covering setup, configuration, and the recommended specs for a smooth deployment.

How to Self-Host Plex on Hetzner (2026 Guide)

Self-hosting your Plex media server can enhance your streaming experience while providing greater control over your media library. Hetznerโ€™s competitively priced VPS solutions, starting at 4.15 EUR/month for the Cloud VPS, make it an ideal choice for developers and homelab enthusiasts. This guide will walk you through the process of setting up Plex on a Hetzner VPS efficiently.

Step 1: Choosing the Right Hetzner VPS

When selecting a VPS, consider your media library size and concurrent streaming needs. Below is a comparison of Hetznerโ€™s offerings alongside some other popular VPS providers.

ProviderPriceRAMCPUStorage Options
Hetzner Cloud4.15 EUR/mo2 GB1 vCPU20 GB SSD
Contabo VPS5.99 EUR/mo4 GB1 vCPU100 GB SSD
DigitalOcean6 USD/mo2 GB1 vCPU25 GB SSD
Vultr6 USD/mo2 GB1 vCPU32 GB SSD
Linode (Akamai)5 USD/mo2 GB1 vCPU25 GB SSD

To get started, choose a Hetzner Cloud VPS with at least 2 GB of RAM and adequate storage.

Step 2: Setting Up Your Hetzner VPS

  1. Create an account at Hetzner: Sign up at Hetzner and log in to the console.

  2. Create a new VPS instance:

    • Go to the โ€œCloudโ€ section and create a new server.
    • Select your desired datacenter location.
    • Choose your server type and plan, ensuring it meets the criteria mentioned previously.
  3. Configure Networking: Allocate a public IP and set up basic firewall rules to restrict access to allowed ports (e.g., 80 for HTTP, 443 for HTTPS, and 32400 for Plex).

  4. Access Your VPS: Use SSH to connect to your VPS using a terminal:

    ssh root@your_vps_ip

Step 3: Install Plex Media Server

With your VPS ready, proceed with the Plex installation:

  1. Update the system:

    sudo apt update && sudo apt upgrade -y
  2. Install Plex:

    • Download the Plex Media Server package from the official website:
    wget https://downloads.plex.tv/plex-media-server-new/1.24.0.4932-1d9ae8826/debian/plexmediaserver_1.24.0.4932-1_amd64.deb
    • Install the downloaded package:
    sudo dpkg -i plexmediaserver_1.24.0.4932-1_amd64.deb
  3. Enable and start the Plex service:

    sudo systemctl enable plexmediaserver.service
    sudo systemctl start plexmediaserver.service
  4. Adjust configuration:

    • Edit the Plex configuration file if needed (typically found at /etc/default/plexmediaserver), ensuring that the server uses the correct directories for your media.

Step 4: Accessing Plex Web Interface

  1. Open your web browser.
  2. Navigate to: http://your_vps_ip:32400/web.
  3. Sign in or create a Plex account.
  4. Follow the setup wizard: Add libraries for Movies, TV Shows, etc., by pointing Plex to the respective directories where your media is stored.

Step 5: Best Practices & Security

  1. Firewall Configuration: Use ufw (Uncomplicated Firewall) to restrict access to the Plex ports:

    sudo ufw allow 32400/tcp
    sudo ufw enable
  2. Use HTTPS: For secure access, consider setting up a reverse proxy with Nginx or Caddy to enable HTTPS.

  3. Regular Updates: Ensure your server and Plex Media Server are regularly updated for security and performance.

FAQ

1. What if I encounter issues accessing the Plex web interface?

If youโ€™re having trouble accessing the Plex web interface, ensure that your firewall allows traffic on port 32400. You can check this by running:

sudo ufw status

If the port is closed, use the commands above to open it. Additionally, verify that the Plex service is running with:

sudo systemctl status plexmediaserver.service

If itโ€™s inactive, you can restart it:

sudo systemctl start plexmediaserver.service

2. Can I use my own domain for Plex?

Yes, you can use your own domain name with Plex. To do this, set up a dynamic DNS service or configure a static DNS if you acquire a static IP from Hetzner. Set the A record in your domain registrar to point to your VPS IP. Ensure that your reverse proxy configuration is adjusted accordingly to allow domain access over HTTPS.

3. How much storage do I need for my media?

The storage required for your Plex media server primarily depends on the size of your media library. A standard full HD movie takes about 4-8 GB, while 4K movies can exceed 20 GB. Based on the size of your library, choose a storage option that meets your needs. Hetzner offers additional storage options that can be added later at competitive rates.

By following this guide, you should now have a fully running Plex Media Server on your Hetzner VPS. For a full VPS comparison, review additional options to find the perfect fit for your hosting needs. Happy streaming!