VPN Disconnects my Remote Access in Plex

I’ve been fighting with my Remote Access always disconnecting shortly after I get it enabled and initially connected. For context I’m on Ubuntu and have torrenting set up via a VPN. I’ve narrowed the issue down to my VPN connection…somehow.

  • I’ve set up port forwarding on my router.
  • I’ve used that to set up the specific port in Plex > Remote Access.
  • I’ve set a static IP for the server from the router.
  • I’ve opened up the port in the firewall to allow all connections.
  • Within Plex I have it set to prefer my wifi network card, while torrent runs specifically through the VPN tunnel.

If I turn off the VPN there seems to be no issue with Remote Access, as I get the green indicator and it doesn’t disconnect. However with the VPN connected, Remote Access turns on for a few seconds and then inevitably disconnects again.

Does anyone know what might be causing this? Or how to solve this. I’ve been through the Network Troubleshooting guide and Access Relay documents already.

Edit: Thanks everyone for the assistance, it is greatly appreciated.

VPN on the Plex Media Server Computer

The platforms on which some Plex apps run don’t allow us to actively scan the network to try and find available Plex Media Servers. Other platforms don’t allow direct communication to any private IP (e.g. any IP on your local network). Among others, the PlayStation, Smart TVs, and Xbox apps are affected by these restrictions.

That means we have to get connection information in another way, which is provided when both the Plex Media Server and the app sign into your Plex account. This is accomplished because your Plex Media Server will send its private and public IP address to plex.tv, which can then be retrieved and used by the Plex app to find servers.

When using a VPN (Virtual Private Network), the IP information can be incorrect because of the VPN and thus the Plex app doesn’t have the correct/necessary information to be able to find your Plex Media Server and connect.

Like what is mentioned. Run all the torrent stuff in docker with VPN. The Plex native

The simplest solution is to split tunnel if your VPN client supports it, so that Plex doesn’t use the VPN.

I myself, my torrent machine is a docker container running OpenVPN inside the Ubuntu box that runs Plex. No issues with connectivity there.

Just an idea but might running tailscale on your Plex devices solve this?

Appreciate you linking this, I’m usually good at troubleshooting my issues so I’m not sure how I never came across this article.

How do people get around this that want to torrent and host Plex on the same machine? I don’t have a second one to divide the tasks.

ça résout techniquement pas le problème. Simplement, grâce à Tailscale on sera toujours dans le réseaux local puisque c’est un VPN. Mais l’accès extérieur sera toujours indisponible. On contourne juste le problème.

J’ai ce problème là, j’aimerais donner accès à mes amis à mon Plex sans devoir leur imposer de se connecter à Tailscale pour ça.

You’re bound to get a few different answers. I believe some VPN providers have a “bypass” so that you can use apps without the VPN affecting them. Some people put their torrenting setup virtually and VPN just that. There may be a few other recommendations that materialize.

Linuxserver Qbittorrent docker + gluetun docker

network for qbittorrent container = gluetun container and you’re golden.

Just set this up myself there’s some great tutorials on YouTube for this.

If you are having trouble I’m happy to help if I can

Also if you are using NordVPN it just kinda borks plex. Split tunnelling doesn’t fix it. Nord just blocks port forwarding even when split tunnelled. I talked to support and they confirmed it won’t work.

Edit: Nord VPN works in docker with gluetun, but not when running on the host os

I do everything on the same machine, the way I do it is for plex media server, I run that under my vpn. You see, I don’t have the account info needed to port forward the normal way, I have to do it through my VPN. I setup a port with my VPN service to always forward, and I use that port for remote access with my plex server. It allows the server to be available over the internet, while bypassing the no port forwarding restriction I have

Sorry for replying on an old post but I just did the gluntun with nord and qbit, they both run good and qbit is using Nord but I can’t access remote access in plex because I think it’s using the vpn. Am I right? If so how do I fix it?

Hello! Are you using docker-compose for all these? And if so are you setting gluetun as your network for Plex as well? If so you have to list the port that plex is using under the gluetun ports like you did to access QBit.

Alternatively I keep plex in a completely separate docker-compose yml file and just forward that port from my pc to my router etc. That way I can take down qbit/other services whenever and not interfere with plex. For any service you are trying to run through a vpn with gluetun you have to put the ports it will be using in the gluetun environment.

Sorry I’m a bit new to this (as of 2 days) but I have one stack with the gluetun and now qbit and I have plex in a container