
Plex Media Server is the gold standard for self-hosting your media library. However, one of the most frustrating errors users face is the dreaded "Remote Access Not Available Outside Your Network". This happens when Plex cannot establish a direct connection between your server and the outside world. If you do not have a static IP address, your router's public IP changes regularly, causing remote access to drop. Here is how to fix this issue permanently using a custom domain on Cloudflare and SyncMyIP.
Step 1: Enable Port Forwarding on Your Router
For Plex remote access to function, your router must route incoming traffic on a specific port directly to your server's local IP address.
- Open your Plex dashboard, go to Settings > Remote Access.
- Check the box for "Manually specify public port" and keep the default value of
32400. - Access your router's admin panel and create a port forwarding rule: forward external port
32400to your Plex server's local IP on port32400(using TCP protocol).
Step 2: Keep Your Hostname Synced with SyncMyIP
Plex needs to know how to locate your home network even when your ISP changes your IP. By mapping a custom subdomain in Cloudflare (e.g., plex.yourdomain.com), you can keep it synchronized automatically using SyncMyIP:
- Create an A record in Cloudflare pointing to your current public IP.
- Generate a Cloudflare API token with DNS Edit permissions.
- Configure SyncMyIP on your Windows machine or home server with your token and subdomain. It will run silently in the background, updating your IP in real-time.
Step 3: Configure Custom Server Access URLs in Plex
To tell Plex clients (like your phone or smart TV) to connect via your secure, auto-updating subdomain:
- In Plex Settings, go to Network.
- Find the "Custom server access URLs" field.
- Enter your domain:
https://plex.yourdomain.com:32400.
This bypasses Plex's default relay system and establishes a direct, fast connection to your server from anywhere in the world, completely bypassing dynamic IP limitations.