arthur87 0 Posted July 19, 2018 Posted July 19, 2018 (edited) I have just installed Emby Server on my Ubuntu Server and trying to configure remote access settings. Right after installation I noticed that server can be accessed from outside of my local network via both - local and public ports which I didn't liked. After a little bit of googling it seemed that this issue partially caused by UPnP (and I think that partially it's a bug). After I disabled "Enable automatic port mapping" in Emby settings situation hasn't changed, so I disabled UPnP in router settings. It helped, but then I have faced another issue. Even after I manually configured port forwarding rules in my router settings, I'm for some reason cannot access Emby server via public port. Here is the error message I'm getting: At the same time remote access via local port (I created a separate port forwarding rule for it) is working fine. It's also interesting that remote access via local port works only if "Allow remote connections to this Emby Server" setting is enabled (otherwise it's just showing "Forbidden") which meany that Emby can distinguish local and remote connections, it's just seems that for some reason connections on public port are completely disabled. Can someone please tell what is causing this issue and how to fix it. I'm also attaching screenshots of Advanced settings from Emby and screenshot of port forwarding rules from my router. Thanks. Edited July 19, 2018 by arthur87
Luke 42077 Posted July 19, 2018 Posted July 19, 2018 Hi, this looks to me beyond Emby's control and that the traffic just isn't making it to Emby Server. I notice you've changed multiple variables here, the upnp setting, the public port values. I would probably suggest going back to defaults and then changing one thing at a time, testing, and repeating. Please let us know if this helps. Thanks.
arthur87 0 Posted July 19, 2018 Author Posted July 19, 2018 Hi, this looks to me beyond Emby's control and that the traffic just isn't making it to Emby Server. I notice you've changed multiple variables here, the upnp setting, the public port values. I would probably suggest going back to defaults and then changing one thing at a time, testing, and repeating. Please let us know if this helps. Thanks. Thank you for the answer. A reset settings by removing /var/lib/emby/config folder and started some experiments. Here a the results: By default both local and public ports are set to 8096, I believe this is why remote access worked for me at the beginning. This time I decided to change local port to 8097 and leave default value 8096 for public port. As a result after I restarted the server remote access via port 8096 stopped working, however it worked for new local - 8097. So I believe this proves my theory that Emby just cannot receive connections to the port which specified as public.
Solution dcrdev 255 Posted July 19, 2018 Solution Posted July 19, 2018 (edited) Isn't the issue here that you're forwarding the public port to the public port you've specified within Emby and are expecting Emby to listen on that port? Setting the public port within Emby doesn't make it listen on that port - it's just for identifying ports within the apps. So try: Emby local http: 8096 Emby local https: 8920 Emby public http: 42890 Emby public https: 42891 Router: Forward 42890 to 8096 Forward 42891 to 8920. Edited July 19, 2018 by dcrdev 2
arthur87 0 Posted July 19, 2018 Author Posted July 19, 2018 Isn't the issue here that you're forwarding the public port to the public port you've specified within Emby and are expecting Emby to listen on that port? Setting the public port within Emby doesn't make it listen on that port - it's just for identifying ports within the apps. So try: Emby local http: 8096 Emby local https: 8920 Emby public http: 42890 Emby public https: 42891 Router: Forward 42890 to 8096 Forward 42891 to 8920. Thank you for explanation. Yes, now it's working. I just misunderstood meaning of these settings, I thought connections to local and public port will be handled differently by Emby.
Luke 42077 Posted July 19, 2018 Posted July 19, 2018 So I believe this proves my theory that Emby just cannot receive connections to the port which specified as public. You're correct and it was never designed this way. The only reason you enter the public port in Emby is for these two purposes: So that Emby Server can display the correct remote access url on your server dashboard So that the automatic port mapper knows what to map to (which you've disabled) That's it. Would it be easier if we just didn't allow you to change the ports at all? Then there would have never been a problem?
dcrdev 255 Posted July 19, 2018 Posted July 19, 2018 So basically what I said then? You're correct and it was never designed this way. The only reason you enter the public port in Emby is for these two purposes: So that Emby Server can display the correct remote access url on your server dashboard So that the automatic port mapper knows what to map to (which you've disabled) That's it. Would it be easier if we just didn't allow you to change the ports at all? Then there would have never been a problem? Probably a bit rash - maybe just try documenting things better for new users pal?
ebr 16169 Posted July 19, 2018 Posted July 19, 2018 That's it. Would it be easier if we just didn't allow you to change the ports at all? Then there would have never been a problem? There actually wasn't a problem in the beginning as everything worked automatically - but he didn't like that and wanted to change the configuration.
arthur87 0 Posted July 19, 2018 Author Posted July 19, 2018 Would it be easier if we just didn't allow you to change the ports at all? Then there would have never been a problem? Maybe it will be more intuitive and less confusing if public ports settings will be grayed out if automatic mapping is disabled. Or there could be at least some note that without automatic mapping this setting doesn't do anything besides changing remote link in the Dashboard.
Luke 42077 Posted July 19, 2018 Posted July 19, 2018 Maybe it will be more intuitive and less confusing if public ports settings will be grayed out if automatic mapping is disabled. Or there could be at least some note that without automatic mapping this setting doesn't do anything besides changing remote link in the Dashboard. Right, we can't gray them out for the reason that you noted but yes i think the help text can be improved. thanks.
ebr 16169 Posted July 19, 2018 Posted July 19, 2018 Maybe it will be more intuitive and less confusing if public ports settings will be grayed out if automatic mapping is disabled. Or there could be at least some note that without automatic mapping this setting doesn't do anything besides changing remote link in the Dashboard. Isn't this also key information for Emby Connect...?
Luke 42077 Posted July 19, 2018 Posted July 19, 2018 Isn't this also key information for Emby Connect...? Correct, I was just simplifying my explanation by saying the display on the server dashboard. But yes there are other areas that utilize that information.
arthur87 0 Posted July 19, 2018 Author Posted July 19, 2018 There actually wasn't a problem in the beginning as everything worked automatically - but he didn't like that and wanted to change the configuration. I didn't liked that by default (when UPnP is enabled) Emby can be accessed from the Internet via both local and public ports, so I started to look for the settings to change that. When I found a setting called "Public http port number" I expected that if I'll change it Emby will listen to this port for connections from the Internet and local port will be inaccessible. But this is not what happened as you already know. Isn't this also key information for Emby Connect...? Without UPnP it's still won't mean much since you actually should specify the port which you set it port forwarding settings and not in Emby settings. So it seems that Emby Connect is just another feature that won't be working correctly if ports are not configured properly.
Luke 42077 Posted July 19, 2018 Posted July 19, 2018 I didn't liked that by default (when UPnP is enabled) Emby can be accessed from the Internet via both local and public ports, so I started to look for the settings to change that. When I found a setting called "Public http port number" I expected that if I'll change it Emby will listen to this port for connections from the Internet and local port will be inaccessible. But this is not what happened as you already know. The startup wizard asks you about the upnp port mapper, so it could have been changed at that point.
Luke 42077 Posted July 19, 2018 Posted July 19, 2018 Without UPnP it's still won't mean much since you actually should specify the port which you set it port forwarding settings and not in Emby settings. So it seems that Emby Connect is just another feature that won't be working correctly if ports are not configured properly. Yes of course, if Emby Server doesn't' know it's remote access url, then there is going to be a problem.
PhillyIdol 1 Posted April 5, 2019 Posted April 5, 2019 Ok - hitting up an older post, but... I use Emby Connect, I'm also pretty IT savvy, so first off - my Emby server is on Linux Mint-Mate, successfully set port fwd'ing on router to the listed Ext port in my Emby settings (default 8096) - which works, but I want to use a dif Ext port than the default 8096 (I like defining my own Ext ports for xtra security), so set the port, tested it via canyouseeme.org - came back Success, but (you guessed it) tried thru my phone app now and get the 'unable to connect to server' What ID 10T thing did I miss?
PhillyIdol 1 Posted April 5, 2019 Posted April 5, 2019 P.S. I also changed/set the port I picked in the subsequent 'Public port number' field
PhillyIdol 1 Posted April 5, 2019 Posted April 5, 2019 (sigh) sorry - nm. I rebooted my entire network hardware stack. Works
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