Ability to manually set public IP for remote access

When plex server is behind a VPN plex will use the public IP which the VPN uses. It would be good to have a simple ‘Manually specify public IP’ option for people to easily set up remote access.

Currently the workaround is to have all traffic from Plex to go through the VPN except for traffic going to plex.tv. Whilst this set up is good it would of been easier to just set my own IP.

Also the fact a lot of consumer IP addresses are not static it would be good to be able to set this to a domain. e.g. home.example.com. Quite a few people use DNS services which keeps track of their dynamic IP address.

You can already specify a domain if you are using a “dynamic service”

Under settings -> Network -> Server Access URL - this will publish any domains you put in there for server discovery

1 Like

@teshiburu For some reason that doesn’t seem to work for me.

Not all network environments use one single IP and may instead have specific circuits for outbound and others for inbound.

Please add the option to manually specific IP or allow a manual hostname to be used for resolution.

You can already set the external name to use.
/settings/server/network/Custom server access URLs

@cayars

I’ve tried using that option and it does not seem to work with the iOS app however it will work in a browser.

It also works when accessing via plex.tv but says it’s limited for some reason.

@kantlivelong said:
@cayars

I’ve tried using that option and it does not seem to work with the iOS app however it will work in a browser.

I don’t use iOS so I’m not sure of it’s setup but do you have this client setup to use a fixed IP?
The limited connection might be what’s causing the problem.

Plex Server: 192.168.99.55/24 (static) listening on default ports
Router LAN: 192.168.99.1/24 (static)
Router WAN: [OMITTED_WAN_IP] (static)
DNS A Record: plex.home.OMITTED.com -> [OMITTED_WAN_IP]

Router configured to forward [OMITTED_WAN_IP]:32400 to 192.168.99.55

iOS client is using DHCP outside of my LAN
Desktop browser client is using DHCP outside of my LAN

Adding http://plex.home.OMITTED.com:32400 to "Custom server access URLs" will get Plex working when accessing from plex.tv but will say the connection is limited which I’m sure means is that it’s using a relay instead of a direct connection via the URL provided in "Custom server access URLs"

Plex access works on both clients via a web browser when using the http://plex.home.OMITTED.com:32400 URL

Plex iOS client fails to connect outside of my LAN.

Just did a quick test

  1. I set “Custom server access URLs” to my DNS which resolves to my external IP which I want to be used for plex access.
  2. I removed the routing rule therefore Plex Media Server will connext to plex.tv via my VPN tunnel

Although I set the “Custom server access URLs” to a domain by public IP on “Remote Access” is still resolved to my VPN public IP therefore plex attempts to use [VPN_PUBLIC_IP]:32400 and not [EXTERNAL_IP]:32400

1 Like

@kantlivelong said:
Adding http://plex.home.OMITTED.com:32400 to “Custom server access URLs” will get Plex working when accessing from plex.tv but will say the connection is limited which I’m sure means is that it’s using a relay instead of a direct connection via the URL provided in “Custom server access URLs”

If the connection is limited then that is the relay feature. That means the client could not reach your server directly so it’s going through Plex.tv.

Plex access works on both clients via a web browser when using the http://plex.home.OMITTED.com:32400 URL

^^ Is that exactly what you entered? By using http you are saying to use an insecured connection. The iOS app by default is not allowed to connect using an insecure connection. There should be a setting to change this.

@“MovieFan.Plex” https works as well.

Just to expand upon that. I did previously try both http and https in the Custom server access URLs when trying the iOS app and plex.tv.

I’m no expert in that stuff but I’ll take a look. Can restart PMS, wait 3 minutes then try connecting from the iOS app a few times. Then grab both the PMS and iOS logs.

@“MovieFan.Plex”

I’ve PM’d you the log files. You will notice and can ignore the successful connection on the iOS client at some point due to switching WiFi back on when grabbing the log files. (Thought I had to browse to port 32500 but I guess not)

I have server on a Synology NAS. The first when enabling remote access, my external VPN address is set for Public. Afterwards, even I turned the VPN off, the Public IP address never updated.

And I cannot find you suggestion “Under settings -> Network -> Server Access URL - this will publish any domains you put in there for server discovery.” Under Network, only “Security connections” is available, plus a checkbox “Enable local network discovery (GDM).”

Isn’t there a configuration file somewhere on the server which can be edited?

You have to decide how you are going to set this up and dedicate your system to working ONE way. It’s either using your real public IP address or your VPN address. If using the VPN public address you need to have a static VPN address AND have to be able to port forward to your local 32400 port of the Plex server. If you can’t do that with your current VPN provider then you can’t use it with Plex.

1 Like

The real problem here is that Plex offers no advanced option to specify the inbound IP and will simply detect the wrong IP because outbound connections use a different gateway than inbound.

1 Like

Well if you have things setup correctly you won’t have a different gateway.

“Correct” is relative to the environment. Plex is making a poor assumption.

Well I don’t disagree that Plex could handle networking and ports better and be more configurable but at the same time this is usually a user configuration that can be changed.

If you setup your Plex server so it has one IP and one Gateway with the proper netmask then you won’t have these types of problems.

Agreed. Just don’t see why I need to work around Plex instead of it just working with me. It’s not like the ability to specify an IP is difficult to add. It’s already an option for the port.