Jump to content

Port forwarding issue


Go to solution Solved by asitz21,

Recommended Posts

Posted

Hi,

I've had my Emby server set up for some time now, and remote access was working really well through http and https.

Just yesterday, I was thinking I should change the ports from the default ports for added security. I changed the default ports to random numbers in the unregistered port number range and forwarded them the same way I did before with the default ports. For some reason, remote access to the Emby server didn't work with these settings. I tried to change the ports back to their defaults and forward them the same way I did when it had worked before. Now remote access times out, and when I go to canyouseeme to test my ports, it says it can find 80, but it can't find the service on 443 due to a timeout. I forwarded the ports the exact same way I had when it worked. I have two routers, one is the modem/router combo for my internet, and the other is a mesh network extender.

I forwarded the modem/router's 443 to 443 on my mesh network. Then I forwarded 443 from the mesh network to 8920 on my server. I've ensured all relevant ports (80, 443, 8096, 8920) are open in my firewall.

I'll attach some screenshots of the port forwarding on the Nokia modem/router and the Deco X55 Mesh Network as well as a few of the firewall settings:
image.thumb.png.5c78c7b254766a0bdaee4560db5a1eec.png


image.thumb.png.a710960f70cce2ecef24477da80e04c7.png

image.thumb.png.c35f7bfb24feba3fe698ab7f369b572d.png

 

image.png.9d8b2dc49fec65f5778f81c3ef0985c7.png

 

image.png.0cd5d582e303f2842bd68d0fb119d0c1.png


image.png.a9b711434702604811b8b2b2c5d7284f.png

I'm also running Caddy as a reverse proxy, which I suppose could be complicating things too, so I'll copy my Caddyfile code below in case someone sees something I did incorrectly:

my_domain {
    reverse_proxy localhost:8096
}

I spent a lot of my downtime yesterday fiddling with port forwarding, trying to get it to work, but nothing I've done has made port 443 or any other custom https port I've tried to use visible to canyouseeme. Every time I use canyouseeme or try to connect remotely, the connection times out. Any assistance anyone could offer would be greatly appreciated. I've done searches for other topics like this, but nothing I've found so far has worked for me, which is bizarre, because it was all working a couple days ago before I changed the ports and then changed them back.

  • Solution
Posted

Hello, I was working some more on this and reading other Emby forum posts, and I realized I mistakenly forwarded the public ports directly to my Emby Server, forwarding 80 to 8096 and 443 to 8920, which is not correct with a Caddy reverse proxy. Because I'm running Caddy, I needed to forward the public 80 and 443 ports to the 80 and 443 ports of Caddy, because Caddy listens on those ports. I did, and it works now!

  • Like 1
  • Thanks 1
Posted

Thanks for following up.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...