Rosewellzz 1 Posted March 26, 2019 Share Posted March 26, 2019 I've Got emby premier and have setup port forwarding on my VPN from an external port of 8738 to 8096 internal to the emby windows box, If I manually type in the External Remote wan ip and this new port (8738) I can connect to the emby server from an external network, however I cannot get emby connect to work. I Get as far as sign in and then it prompts me to select a server (Emby Media server) and then just says failed to connect to server. Is there something Im missing here? How does emby connect know my external port is now different? how to I get it to use that as an external port rather than the internal one? Note: I had to change the external port to 8738 as the VPN does not have 8096 available. any help would be great. 1 Link to comment Share on other sites More sharing options...
ebr 14910 Posted March 26, 2019 Share Posted March 26, 2019 Hi. Can you please look at the below and let us know if it answers your question? Thanks. Hosting settings Link to comment Share on other sites More sharing options...
the-dumb1 121 Posted August 13, 2021 Share Posted August 13, 2021 I have version 4.6.4.0 installed on my Synology NAS ... the referenced link doesn't help. I can't find where to set a different listening port. Link to comment Share on other sites More sharing options...
rodainas 188 Posted August 13, 2021 Share Posted August 13, 2021 On your server settings, network you can set the ports you want, make sure those ports are forwarded on your router settings. 1 Link to comment Share on other sites More sharing options...
the-dumb1 121 Posted August 13, 2021 Share Posted August 13, 2021 Nope. It is either missing or has been removed. Link to comment Share on other sites More sharing options...
Luke 37060 Posted August 13, 2021 Share Posted August 13, 2021 1 minute ago, the-dumb1 said: Nope. It is either missing or has been removed. What device are you running the server on? Link to comment Share on other sites More sharing options...
Luke 37060 Posted August 13, 2021 Share Posted August 13, 2021 1 minute ago, the-dumb1 said: Nope. It is either missing or has been removed. The external ports are not visible on your screen because you've disabled remote access. If you're not using remote access then there's no need for configuring external ports. Link to comment Share on other sites More sharing options...
the-dumb1 121 Posted August 13, 2021 Share Posted August 13, 2021 16 minutes ago, Luke said: The external ports are not visible on your screen because you've disabled remote access. If you're not using remote access then there's no need for configuring external ports. Awesome. Is there a way to change the private listening port? Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 13, 2021 Share Posted August 13, 2021 Generally yes but is there any reason to change the ports used locally? Link to comment Share on other sites More sharing options...
ebr 14910 Posted August 13, 2021 Share Posted August 13, 2021 2 minutes ago, cayars said: Generally yes but is there any reason to change the ports used locally? Maybe not a good reason but, theoretically, some system might exist that was based on an old copy of all of our work that might be trying to use the same port... 1 Link to comment Share on other sites More sharing options...
the-dumb1 121 Posted August 13, 2021 Share Posted August 13, 2021 2 minutes ago, cayars said: Generally yes but is there any reason to change the ports used locally? Yes. I want to run separate instances for different types of media. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 13, 2021 Share Posted August 13, 2021 What OS is your Emby Server running on? Link to comment Share on other sites More sharing options...
the-dumb1 121 Posted August 13, 2021 Share Posted August 13, 2021 4 minutes ago, cayars said: What OS is your Emby Server running on? Synology DSM7. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 13, 2021 Share Posted August 13, 2021 /volume1/@appdata/EmbyServer/config/system.xml The above file will need to be edited while Emby Server is not running. I would make a copy of the file (just in case). You will see two entries in this file that you can modify to change the default ports which are: <HttpServerPortNumber>8096</HttpServerPortNumber> <HttpsPortNumber>8920</HttpsPortNumber> Let us know how you make out. Carlo Link to comment Share on other sites More sharing options...
Luke 37060 Posted August 31, 2021 Share Posted August 31, 2021 @the-dumb1 ? Link to comment Share on other sites More sharing options...
alanemm 0 Posted November 15, 2022 Share Posted November 15, 2022 On 8/13/2021 at 8:35 AM, cayars said: /volume1/@appdata/EmbyServer/config/system.xml The above file will need to be edited while Emby Server is not running. I would make a copy of the file (just in case). You will see two entries in this file that you can modify to change the default ports which are: <HttpServerPortNumber>8096</HttpServerPortNumber> <HttpsPortNumber>8920</HttpsPortNumber> Let us know how you make out. Carlo How would one even view that file? You gave a file path, how do I follow that path? Synology search doesn't know what to do with it. Windows Explorer doesn't. IS there some sort of terminal program I'm supposed to use to follow your instructions? Link to comment Share on other sites More sharing options...
Luke 37060 Posted November 15, 2022 Share Posted November 15, 2022 2 minutes ago, alanemm said: How would one even view that file? You gave a file path, how do I follow that path? Synology search doesn't know what to do with it. Windows Explorer doesn't. IS there some sort of terminal program I'm supposed to use to follow your instructions? Hi, are you running the server on Windows or Synology? Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted November 15, 2022 Share Posted November 15, 2022 12 hours ago, alanemm said: How would one even view that file? You gave a file path, how do I follow that path? Synology search doesn't know what to do with it. Windows Explorer doesn't. IS there some sort of terminal program I'm supposed to use to follow your instructions? You need to ssh into your nas box then go to that path. That is the default location. You can use vi to edit the file, and like have to run as admin since the emby user is the only one with write permissions. However it would be great if on the network settings page, if you could set not just the public ports, but the private ones as well Link to comment Share on other sites More sharing options...
Luke 37060 Posted November 15, 2022 Share Posted November 15, 2022 40 minutes ago, HawkXP71 said: You need to ssh into your nas box then go to that path. That is the default location. You can use vi to edit the file, and like have to run as admin since the emby user is the only one with write permissions. However it would be great if on the network settings page, if you could set not just the public ports, but the private ones as well You can, on supported platforms, but on Synology the port number is defined in our package. That's how the server gets permission to use the port, so it's essentially hardcoded. Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted November 15, 2022 Share Posted November 15, 2022 7 minutes ago, Luke said: You can, on supported platforms, but on Synology the port number is defined in our package. That's how the server gets permission to use the port, so it's essentially hardcoded. Makes perfect sense. You might want to put that on the network page for synology boxes. Possibly show the settings (http and https) make them readonly, and put a comment saying "Not modifiable on Synology due to DSM 7.x permission restrictions" In reality it sounds like, if a user does modify the XML, they may not be able to run successfully as DSM will block the port access for the emby server Link to comment Share on other sites More sharing options...
Luke 37060 Posted November 15, 2022 Share Posted November 15, 2022 4 minutes ago, HawkXP71 said: In reality it sounds like, if a user does modify the XML, they may not be able to run successfully as DSM will block the port access for the emby server If you modify the xml it's not guaranteed to work. Some users have reported success, and some have not. 1 Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted November 15, 2022 Share Posted November 15, 2022 1 minute ago, Luke said: If you modify the xml it's not guaranteed to work. Some users have reported success, and some have not. Probably dependent on the security settings in DSM 1 Link to comment Share on other sites More sharing options...
Carlo 4330 Posted November 16, 2022 Share Posted November 16, 2022 You can change the local ports very easily in Emby itself but the issue is the setup of Synology. Synology can be setup to do proxy, re-routing, application checking, VPN and other things. Because of the different situations and solutions Synology can be used for and to try and make this all as transparent as possible to end users/admins, Synology came up with the idea of registering the ports at install time. Synology can then take those ports during install and adjust the system or built in apps, firewall, proxies, redirection, security, etc to make Emby Server (or any app using ports) "just work" by the end of the install. So in a nutshell, were following Synology's "best practises" to make Emby Server as easy as possible to setup the networking layer. At the same time Emby Server does allow changing ports across the board. The difference is that "Local Ports" editing is shown for many OSes and not for others. I think about it like this. If Emby shows the local port section for editing, there is generally no specific OS features "helping" in anyway and nothing need be done usually except making sure the firewall is open on that machine and network for the port used. When Emby Server doesn't show the local port configuration directly in the UI it's because of the platform is setup in a way that would require adjusting in some way before a specific alternate port can be used as ports are not "transparent" to Emby Server but controlled in some way more than normal by the OS. On systems without the local port config shown, think about it this way. A change of port in Emby Server for local network, requires other changes outside of Emby in order to use the chosen port when changed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now