Jump to content

Recommended Posts

rodainas
Posted (edited)

Then make it simpler again

no nginx, now no cloudfare, no domain name

 

Just you, your router, and emby server


So publicip:publicembyport

 

Edited by rodainas
  • Like 1
vdatanet
Posted
Just now, rodainas said:

Then make it simpler again

no nginx, now no cloudfare, no domain name

 

Just you, your router, and emby server

 

 

Yes, Step by step is always a good idea. When one configuration works, then we test the next.

  • Agree 1
crusher11
Posted
1 minute ago, rodainas said:

Then make it simpler again

no nginx, now no cloudfare, no domain name

 

Just you, your router, and emby server


So publicip:publicembyport

 

Still no dice.

crusher11
Posted

Well the Emby ports aren't forwarded anymore, because I changed the port forwarding settings in the router to forward 80 to 80 and 443 to 443, because that's what was in the NGINX config. So it not working is correct, if you think about it that way.

rodainas
Posted

You need to forward your public emby ports to the local machine running emby

  • Like 1
vdatanet
Posted (edited)

7241 to 8096

And test:

http://yourip:7241 - should work

http;//yourip:8096 - should not work

Edited by vdatanet
  • Agree 1
crusher11
Posted
28 minutes ago, vdatanet said:

7241 to 8096

And test:

http://yourip:7241 - should work

http;//yourip:8096 - should not work

Both work.

On 7241 I get the Guest account, and options to manually log in or reset my password. On 8096 it takes me directly to the manual login screen.

crusher11
Posted

The serverId string is different on each port, for the record.

This is the result of entering RemoteIp:port in the address bar, nothing else.

The Guest account has all the "hide this user" options disabled. So the 7241 result is what should happen, I have no idea why 8096 is enforcing manual login.

Also no idea why the server IDs are different.

Screenshot 2021-07-11 05.27.24.png

Screenshot 2021-07-11 05.27.38.png

rodainas
Posted
4 minutes ago, crusher11 said:

Both work.

On 7241 I get the Guest account, and options to manually log in or reset my password. On 8096 it takes me directly to the manual login screen.

The difference on screens should be cookies.

vdatanet
Posted

My question is: If port 8096 is not forwaded in router why does it work?

  • Like 1
crusher11
Posted
9 minutes ago, rodainas said:

The difference on screens should be cookies.

In an incognito window? 

rodainas
Posted (edited)
22 minutes ago, vdatanet said:

My question is: If port 8096 is not forwaded in router why does it work?

The same happened with my vps, I just blocket it.

But the difference is with the vps there is no router just the machine with the public ip address, so no router to map or forward anything.

Comes to my mind, any possibility the emby server is on DMZ?

Edited by rodainas
GrimReaper
Posted (edited)
51 minutes ago, crusher11 said:

Also no idea why the server IDs are different.

Do you have a rogue server instance running somewhere? What does device.txt from the Emby-Server/programdata/data folder show you? What is the string inside (that would be your serverId)? And did you try to actually login to that 8096 one?

Edit: To clarify, that seem suspicious like another instance with default settings and UPnP enabled; since it is on another port, it will happily co-exist with your main server.

Edited by GrimReaper76
Append
  • Like 1
vdatanet
Posted

Disable automatic port forwarding in Emby, even better, turn it off on your router

crusher11
Posted

Ooh. I set up a test instance on my Shield. Couldn't ever find the app in my apps list so I couldn't uninstall it. Wonder if that's it. 

crusher11
Posted

Yep. Uninstalled the Shield server and 8096 now fails.

 

vdatanet
Posted (edited)

In my opinion, the next step is to set up cloudflare (first without nginx)

In your router, set:

emby's public port to emby's private (non ssl and ssl)

Setup your cloudflare domain

Edited by vdatanet
crusher11
Posted

How do I find Emby's private ports?

 

vdatanet
Posted
1 minute ago, crusher11 said:

How do I find Emby's private ports?

 

Sorry, local. Default are 8096 and 8920. So you need 7241 to 8096 and 4343 to 8920

crusher11
Posted
1 minute ago, vdatanet said:

Sorry, local. Default are 8096 and 8920. So you need 7241 to 8096 and 4343 to 8920

The domain still redirects to port 5000.

vdatanet
Posted
1 minute ago, crusher11 said:

The domain still redirects to port 5000.

Test this:

Set Emby's public ports to 80 and 443

Set router forwading 80 to 8096 and 443 to 8920

  • Like 1
rodainas
Posted
1 minute ago, crusher11 said:

7241 works, 4343 doesn't.

Whats the error for 4343?

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...