Jump to content

Setting up port forwarding for server


Recommended Posts

luifrans3
Posted

Hello, I am trying to setup port forwarding on my server, it hasn't been working on a WAN connection. When adjusting the settings for port forwarding I get the following fields to input and filled it in.

 
 Source Zone: WAN
Destination Zone: LAN
Source IP: (my current IP address)
Destination Device: (drop down menu with devices connected to local Network, selected server)
Destination IP: (auto fills when the destination device is picked, not to current IP address but the in home LAN access number emby has. 
Port Type: (Port or Port Range, selected Port)
Public Port: 8096
Protocol: TCP
Local Port: 8096
 
I then get an error message saying the following: 
Duplicate port forward entry. At most one enabled entry in this table can exist with all the same values for name or source ip, start of public port and protocal.
 
Not sure why it isn't working, any help would be appreciated, thanks.
 
 
pwhodges
Posted

Is uPNP enabled?  This could cause a conflict.

Paull

rbjtech
Posted

Source IP should be 'Any' ...  

 

luifrans3
Posted

Hey, thanks for the advice but I disabled uPNP and tried and it didn't work. I then left the Source IP blank, it still isn't working

rbjtech
Posted

Maybe take a screenshot of the router settings or let us know the router model ?

I assume emby is working locally ?  

luifrans3
Posted

Yes it is working locally, just not working remotely 

Screenshot_20230720_171918_Chrome.jpg

Screenshot_20230720_171720_Chrome.jpg

Screenshot_20230720_171712_Chrome.jpg

Posted

Are you sure the ip addresses in your port forwarding rules are correct?

Posted

Does your ISP allow opening these ports?

rbjtech
Posted

I'm confused by the rules.

You only need a SINGLE port mapping - WAN to LAN (emby)

The destination IP looks to be incorrect ?

Should it not be 192.168.1.157 - the IP address of the emby server (you have it as 192.168.0.158?) - which is not even on the same subnet ?

Also unless you tick 'use hairpin' - you will not be able to TEST WAN connection from your LAN - you will need to turn off wifi on your phone, and use 3/4/5G etc

luifrans3
Posted

I would assume the ISP allows for these ports to be opened as their interface has the option for port forwarding. 

When I first opened emby it would show on the dash that the LAN connection to be the IP ending in 158. I was unable to connect on a LAN connection, the theater app auto connected and showed to be the proper IP that ends with 157. I just left those ports open, figured it would cause any harm until I got it working.

When testing the WAN connection I use 4G cellular or connect to a VPN on my laptop.

rbjtech
Posted

ok so this rule looks to be correct then -

image.png.66ca21875db8b753d7e70837ecd924ab.png

 

btw - it's WAN to LAN (not LAN to WAN) - the SOURCE is the WAN

Are you 100% no entry in the SOURCE means 'Any' ?

What model router is it ?

Next you need to check the local firewall - temporarily disable it to test, but if you can connect locally - the emby setup should have correctly done this for you.

  • Like 1
luifrans3
Posted

I swapped all the ports to WAN to LAN. The firewall for the router has been off since I began trouble shooting emby. 

I am not sure if no source means any.

The router model is adtran 834-5 

Q-Droid
Posted

You can't have multiple entries for the same source IP:Port. Your image is showing three for the same.

 

luifrans3
Posted

Hey, thank you all for the helpful comments, it is working on a remote connection now, have a good one!

  • Like 1
  • Thanks 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...