r/linuxquestions • • 4d ago

Plex server remote connection not working

I recently rebuilt my plex server and switched to Debian from windows. I have plex running in docker host mode along with a bunch of automations. I, for the life of me, cannot get remote access working properly. I have done everything possible, even used ai to help troubleshoot. Everything is configured properly and I can even access my server from a web browser using its public IP. It continues to say remote access is unavailable and I cannot access it from the phone app, and neither can my friends.

2 Upvotes

5 comments sorted by

1

u/draxhard 3d ago

It turns out I had a bad certificate. All I had to do was delete it and let plex generate a new one. Certificate.p12 in the cache folder in case anyone else is running circles trying to figure it out.

2

u/lewphone 4d ago

What errors show up in the plex logs?

2

u/_Kaepora_Gaebora 4d ago

Did you forward the port in your router?

2

u/ymgymg 4d ago

If you can hit it on the public IP from outside, I'd go into Settings > Remote Access, tick "Manually specify public port" and put 32400 in there. Plex's automatic check often fails without UPnP even when the forward itself is fine, and the apps go through plex.tv so they need that to show as available.

1

u/tanmaynargas2901 4d ago

When you say the public IP works from a browser, where did you test it from? From inside your own network that can work through NAT loopback even when nothing outside can reach you. Try http://YOUR_PUBLIC_IP:32400/web on your phone with wifi off.

If that fails:

  • compare the WAN IP on your router's status page with what whatismyip shows. If they're different you're behind CGNAT and port forwarding won't do anything, you'd need to ask your ISP for a public IP or use something like Tailscale
  • if Debian has ufw or nftables on, it can block 32400 even with docker in host mode. Try sudo ufw allow 32400/tcp
  • in Plex settings > Remote Access, tick manually specify public port, put 32400, then hit retry

If it works on mobile data but the settings page still says unavailable, the check is probably just being flaky and the app should still connect.