Allow Direct Connections

Sometimes when switching between my VPN and my 4G, I am told that I can’t directly connect and are put into “indirect mode”, it would be nice if we could force direct connections to the server at all times.

But isnt the point of indirect to only happen when your device aint able to access the pms on port 32400?, this sounds more like the feature itself(indirect -> direct) is broken, if you are getting an indirect connection on your device, despite port 32400 being open on the network you are connected to.

@jazzy348 said:
Sometimes when switching between my VPN and my 4G, I am told that I can’t directly connect and are put into “indirect mode”, it would be nice if we could force direct connections to the server at all times.

You got it kinda backwards.
The indirect connection happens when the clients don’t find a direct connection to your server. The alternative to the ‘indirect’ connection woulkd be ‘no connection at all’.

Plex is a client/server architecture. It determines upon server startup, how the server is connected to the world. This connection is then only verified and re-assessed in rather large intervals. It then reports its publix IP address to your plex.tv account. The Plex clients in turn rely on this information to find the server.
If you put your computer in and out of VPN connections rather rapidly, Plex cannot react fast enough to the now radically different connectivity situation.
The result is the fallback to the Relay connection as a last resort.

Early 2021 clean-up: explained