# Plex-ngrok

Plex-ngrok is a Docker container that tunnels a local Plex media server to a public ngrok URL and updates Plex's Custom Server Access URLs, enabling direct remote access from any device even when the server sits behind. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/2322/plex-ngrok

## Description

Plex-ngrok is a Docker container that tunnels a local Plex media server to a public ngrok URL and updates Plex's Custom Server Access URLs, enabling direct remote access from any device even when the server sits behind carrier-grade or double NAT, which is useful on satellite and mobile connections.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

18/100 (Low), based on 4 of 4 factors.
- Maintained: 0 (GitHub repository is archived)
- Popular: 14 (4 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 50 (2 GB minimum RAM)

## Links

- Docker Hub: https://hub.docker.com/r/andrijn/plex-ngrok/
- GitHub: https://github.com/andriinuts/plex-ngrok-docker
- Unraid: https://ca.unraid.net/apps/plex-ngrok-08at8hp0cpz261?q=plex-ngrok

## Common questions

### Which variables do I need to set when running the Plex-ngrok container?

Set NGROK_PORT to the Plex port, usually 32400, NGROK_PROTOCOL to TCP, PLEX_BASE_URL to your Plex server address, and PLEX_TOKEN to your Plex authentication token. You also need NGROK_AUTH from your Ngrok account, and you can open TCP port 4040 for the Ngrok web interface.

### Can it work when my home network is behind CGNAT or double NAT?

Yes, the project says it can work from behind Carrier Grade NAT or double NAT. It may also work through VPNs.

### How does plex.tv reach my local Plex server after the container starts?

The container creates an Ngrok tunnel to the Plex server and uses the Plex API to update Plex's custom server access URLs with the new Ngrok URL. That lets plex.tv sign in and connect to the server through the tunnel.

### Can I use a fixed custom Ngrok subdomain with it?

The underlying Ngrok image supports NGROK_SUBDOMAIN for a custom subdomain, but it requires NGROK_AUTH. The Plex-ngrok setup described here uses the random Ngrok URL instead.

### Is it useful for Plex on a TV or console that cannot install a VPN app?

An Ngrok tunnel can be useful when Plex needs to run on devices that cannot install clients like Tailscale or ZeroTier. This includes TV or console scenarios where installing a VPN client is not possible.

## Alternatives

- Fossorial Pangolin: Open-source identity-based remote access platform using WireGuard, offering unified management, tunneled connections, granular access contr…
- Headscale: Headscale is an open-source, self-hosted implementation of the Tailscale control server.
- LocaltoNet: Localtonet is a reverse-proxy tunneling service that securely exposes local HTTP, TCP, and UDP services on your network to a temporary publ…
- NetBird: NetBird is an open-source Zero Trust networking platform that makes it easy for engineers to create fast, secure, and private networks with…
- Seawise: Seawise is a Docker client that creates secure outbound connections to share self-hosted apps, such as Jellyfin, Plex, Immich, and Home Ass…
- Serveo: Serveo exposes local servers to the internet using SSH tunneling.
- Tailscale: Private networks made easy.
- Twingate-Connector
- WG Tunnel: This is an alternative Android Application for WireGuard and Amnezia VPN with added features.
- ZeroTier: ZeroTier is an open-source, cross-platform virtual LAN/VPN service that connects your devices and servers into one private network, so you…
- cloudflare-tunnel
- sish: sish is a self-hosted SSH tunneling server that exposes local HTTP(S), WebSocket, and TCP services to the internet using standard SSH clien…

---
Source: Our Local Host (https://ourlocalhost.com/app/2322/plex-ngrok), the self-hosted and open-source app directory.
