I currently have a problem when I use a VPN.
Plex remote access is using the VPN IP address trying to connect to my Plex Server.
The VPN is slow and the port is being translated in my router.
I want to point Plex to my fixed IP address, I don’t want Plex to discover my IP address since the VPN is active.
I tried network > custom server access urls > add a hostname of my NAS server here.
Goal is to have plex using my direct IP and not the VPN IP that is default gateway for other applications.
This is not as easy as you think. You need to manually route the traffic to the respective interface, which is exactly what trumpys link suggests. The part with the custom certificate is just extra fun to get the connection secured.
It is much more complicated than just checking a box or flipping a switch.
I don’t know what VPN you’re using, but Mullvad (which is what I go with) has a guide[0] to what you need to do to direct the plex traffic to the correct spot. Maybe look around and see if your VPN has something similar?
Sorry for the delay here, but I finally figured it out on my own system. What you have to do is the following (and it has to be done every time the PMS restarts or is updated etc):
disconnect from the VPN
stop PMS
start PMS
reconnect to the VPN
it turned out that PMS needed a direct connection to talk to the plex servers on startup. After that, you can run the VPN (with the port forwarding on, that is) without trouble. It’s kind of annoying, but it seems to work.