Assign Manual Port with command line

Server Version#: 1.25.6.5577
Player Version#: N/A

Hello all,
I am trying to connect to my plex server remotely. PMS is running on a Synology DS 918+. I am remotely accessing my server from a Surface Pro laptop in a different state.

I logged into my plex account and clicked on “open plex”. It started up the browser view of my plex server. I had full access to my server and I could see all my media. I had previously set a manual port, 32400, into the settings. Then I accidentally deselected the manual port 32400 and I immediately lost connection, Now, I can’t access my PMS. I am on holiday so I can’t access PMS locally.

I can log into my Synology server just fine. I can see Plex running on my server, but I can’t access it (via the web browser, not can I access the settings remotely.

I want to try and change the port back to 32400 so PMS will show up in my browser window. Since I can access the Synology server remotely (but not plex server), can I run a command line command to manually enter the port 32400 on m PMS.

Thanks in advance for any assistance.
EZ

If you can access your Synology – why not enable SSH and create a SSH tunnel to access your Plex Media Server “locally” and fix the configuration?

The external port is stored in Plex Media Server’s Preferences.xml. You might try editing the file to see if it restores access (Translation: I’ve never tried this, so don’t know if it will work).

  1. Stop Plex Media Server via Package Center
  2. Make a backup, Preferences.xml.bak
  3. Using a text editor, edit Preferences.xml (can use Synology’s Text Editor)
  4. Look for / edit / add ManualPortMappingPort="42400" (use your desired public port number)
  5. Save changes.
  6. Start Plex Media Server via Package Center

Preferences.xml is in the Plex Data Folder.
DSM 7: /volume1/PlexMediaServer/AppData/Plex Media Server/Preferences.xml
DSM 6: /volume1/Plex/Library/Application Support/Plex Media Server/Preferences.xml

1 Like

Also, if you turned off the manual port setting, then it would have switched to automatic via UPnP. If you can get to your router and ensure UPnP is enabled, it should just work. You can then change the port back to manual.

Thanks to everyone for the ideas. Unfortunately, I am away from my home at the moment, so I can’t try any of the suggestions that require local access. I’m going to try the suggestions to modify the preferences.xml file because I can access my synology box while I am away from home.

I could access Plex when the manual port box was checked and I lost connection when I deselected the box, so hopefully the xml change will work.

Thanks again!

Update:

When editing Preferences.xml, you need to check for two entries:

ManualPortMappingMode="1" ← 1 = use manual port mapping
and
ManualPortMappingPort="32400" ← set to desired public port

Reference: Advanced, Hidden Server Settings

Thanks to everyone for their help. Unfortunately, I ran out of time while away from home to try any of the above suggestions. I returned home and was able to access my server locally to solve my issue.
Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.