Server Version#: 1.21.2.3939 (Latest)
Player Version#: (Latest on all) Not really relevant to my question
Is there a way to force Plex to prioritise all external traffic over a specific LAN as my Plex server has two LAN connections on two different subnets and two different external IP addresses through two separate ISPs. There is a setting in the server to “prefer specific lan” but this states only to local users and external clients are just using their logins to access my Plex.
The one line has 1gb upload and the other only has 120mb upload … hence wanting it to prioritise the 1gb connection to external clients?
There are at least a couple of ways you could approach this, but the simplest is likely to configure the interface metrics of your network adapters such that the interface with the higher upload speed is chosen for outbound connections(*). You can do this by assigning a lower (higher priority) interface metric to the appropriate interface. This article describes how the automatic metric value is chosen; the very bottom of the article shows how to disable the automatic metric and manually assign one:
You can see what Windows has automatically assigned for interface metrics using the route print command.
*This may seem unintuitive, but the interface used for the outbound connection to Plex, Inc.'s servers determines which WAN IP address is used for inbound connections.
Thanks for the reply but I already have the 1gb line with a metric of 1 and the other as a metric of 9999 but some external clients still seem to come through the other line?
When did you make the change? If it was done recently it may take time for the new connection information to propagate to clients. Is it possible that the clients not connecting through the preferred interface are using cached connection information?
Unfortunately the adapters have been set that way from the start. So couple of years. Only noticed recently because of people trying to stream 4k content which doesn’t work over the 120mb up connection. But works fine over the 1gb up one.
If you browse to canyouseeme.org, does it show the proper public IP address?
In your remote access settings:
Does it show the correct private IP address?
Are you manually specifying the public port?
That second point is important. If you don’t manually specify a public port PMS will attempt to configure port forwarding automatically on your router(s) using UPnP/NAT-PMP. This may affect remote connections as well. Of course, if you manually specify a port here, you’ll need to manually configure the port forwarding rule on your router.
It does show the default public IP of the 1gb connection, which is the metric 1 connection, and I have UPNP turned off on the router and am manually assigning 32400 to Plex and port forwarding that on the router.
Although I also have that port forwarded on the other ISP too as I want the redundant line to still be able to hit my Plex server on the second LAN.
Replace “plex_online_token” with your token . You can also find your token in the Windows Plex registry key (HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server
This will show the connection information published to Plex for your server. Does it list both of your public IP addresses?
Windows used to do weird things if adapters (which have metrics) & routes (which also have metrics) had identical total metric scores. I haven’t tried in the last few years.
What do the metrics look like in your routing table? route print
Following the thread, because I assume Plex won’t register every available address with the Plex Cloud, because this is an unusual configuration. But I’m curious.
I am, too. I’m almost positive I participated in a thread where there was a similar (the same?) issue, and that it was resolved by changing the metrics. I’m interested to see if PMS is publishing both public IP addresses.
Blanked out for privacy but always the .122 public IP apparently. But this is not the case as sometimes the traffic for external users is going through my other line which is 10.0.2.113 locally and ending .193 publicly.
This, to me, implies that the clients are likely using outdated connection information. Perhaps they haven’t checked in with the mothership in a while. I’m curious what the result would be if you removed/disabled the port forwarding rule on the second router. Maybe it would force clients to refresh their connection info if they were unable to connect? And/or sign out one of the affected clients and sign in again (or uninstall/reinstall the Plex app)?
At the very least, the expected information is being published to Plex.
I think I might try this by disabling the secondary LAN for a little while and let all clients use the other connection and see if that helps.
Unfortunately some clients have old Samsung Smart TVs with no updates to the Plex client for a long time. The features in the settings for the TV app are limited client end.
When I was having the same issue I use a freeware program to bind plex to the one IP address.
the route commands will not help you unless you want to kill all traffic going out the slow lan, as the route command is dealing with TCP connections, not applications.
here is the program I used. I put it in the same directory then edited the service start line to start with the proper command. https://www.howtogeek.com/117890/how-to-force-an-application-to-use-a-specific-network-card/
Getting the clients to sign out and sign back in, after disabling the 2nd LAN connection and restarting Plex Media Server with it disabled, worked like a charm.
Seems Plex was just stuck on connecting through the second LAN.