Jump to content

Accessing Emby Remotely (and adding new videos on server)


hollerme

Recommended Posts

hollerme

Hi.

 

I am set to move abroad this Summer and was looking for help regarding a couple of important questions I have (related to each other).

 

As I am keeping my Synology at my home so my family may be able to access Emby on it and continue to watch the movies I own, the first question I have is how can I set up my laptop and smartphone (I have a Samsung Galaxy S8+) to be able to access Emby from abroad and watch videos from my collection.

 

The 2nd question I have is would I be able to continue adding videos to my Synology from abroad, and if so what are the steps to do so?

 

Any help would be greatly appreciated and thank you tremendously to this community for all your help throughout.

Link to comment
Share on other sites

hollerme

If anyone knows if this is possible I would very much appreciate the help as I am keen to continue to use Emby while abroad to keep myself entertained.

Link to comment
Share on other sites

 

 

The 2nd question I have is would I be able to continue adding videos to my Synology from abroad, and if so what are the steps to do so?

 

@@FrostByte do you have any tips on this?

Link to comment
Share on other sites

 

 

how can I set up my laptop and smartphone

 

Hi, have you installed the Emby mobile app from the android app store? What is your laptop running, Windows?

  • Like 1
Link to comment
Share on other sites

hollerme

Hi Luke,

 

Yes I have the Emby mobile app on my phone which I downloaded from the Android app store. It works at home but the movement I leave the house I am unable to connect.

 

My laptop is running Windows 10.

 

Hi, have you installed the Emby mobile app from the android app store? What is your laptop running, Windows?

Link to comment
Share on other sites

pmurphy0881

...how can I set up my laptop and smartphone (I have a Samsung Galaxy S8+) to be able to access Emby from abroad and watch videos from my collection.

 

The 2nd question I have is would I be able to continue adding videos to my Synology from abroad, and if so what are the steps to do so?

 

I am assuming that nobody here is running a commercial internet service to their house with static ip's...

 

So that being said I would look at doing the following.

 

 

1.)

Check your firewall/router to see if you can do port forwarding... Almost all of them do

setup your PC, synology, routers, whatever you want with a DDNS service (Some routers have it built in).  It doesn't matter what device you set it up on as long as it's running and inside your network.   This will allow you to setup a name instead of an ip address to your emby installation.

Now complete the port forwarding setup and direct the port numbers that you want to reference externally directed to your emby server internal IP address and port.

 

2.)

This one really depends on what is available from the Synology...  I did a quick search online and found that on you tube there is someone who has gone over the available methods to solve your problem.  Just keep in mind that if you do this first and they ask you to setup a DDNS service, then you can skip that from my list above.  You would only need to do the port forwarding.  The link to his video is below to give you an overview.

 

 

Hope that this helps you out some.

  • Like 1
Link to comment
Share on other sites

hollerme

Thanks for this, I'm trying to follow the steps and thus far everything appears to be going well so I'm grateful for these steps but when I go on Emby on my phone (I turned off the wi-fi to test it out) I don't know what to input under Host. The port figure is automatically filled (it says 8096) but I am at a loss for what to fill out host with. I attempted the external synology page I created following the youtube video (username.synology.me) but that didn't work. I also went to Emby settings on my laptop and inputted the Remote (WAN) access figure on my phone in that same field but got an error message then too (Connection failure). Any suggestions?

 

Any suggestions?

 

I am assuming that nobody here is running a commercial internet service to their house with static ip's...

 

So that being said I would look at doing the following.

 

 

1.)

Check your firewall/router to see if you can do port forwarding... Almost all of them do

setup your PC, synology, routers, whatever you want with a DDNS service (Some routers have it built in).  It doesn't matter what device you set it up on as long as it's running and inside your network.   This will allow you to setup a name instead of an ip address to your emby installation.

Now complete the port forwarding setup and direct the port numbers that you want to reference externally directed to your emby server internal IP address and port.

 

2.)

This one really depends on what is available from the Synology...  I did a quick search online and found that on you tube there is someone who has gone over the available methods to solve your problem.  Just keep in mind that if you do this first and they ask you to setup a DDNS service, then you can skip that from my list above.  You would only need to do the port forwarding.  The link to his video is below to give you an overview.

 

 

Hope that this helps you out some.

Edited by hollerme
Link to comment
Share on other sites

chef

You would use your public ip address.

 

But beware that public ips change to thwart attacks, so you'll have to keep an eye on that.

Edited by chef
Link to comment
Share on other sites

chef

Might be too advanced, but if you are serious about accessing media remotely, maybe a domain purchase isn't out of the question here.

 

Then you can update the records on the domain consistently, and log into emby using a domain name.

 

Not sure if it is too much of a recommendation for ya.

 

EDIT: my domain get checked and updated every hour with a script that run on my server, so even if the ISP changes my public address, the script catches it and changes the domains A type records automatically...

Edited by chef
  • Like 1
Link to comment
Share on other sites

pmurphy0881

You don't want to setup your app using the external IP address... That is subject to change before you are able to get back.

The whole key to being able to access your system from a Dynamic IP address is to have your Synology setup with a DDNS server.  By doing this it will provide you with a domain name that will use whatever the current IP address of your Synology is... So in a couple of weeks, days, months, etc... when your ISP changes your IP address you will still be able to access it.

 

So to better assist you in figuring this out help me out with a few things.

 

1.)  Did you setup your Synology with DDNS and did you take not of the domain name that they provided you?

2.)  What type of router or modem do you have?

3.)  Is your router also your modem like a Verizon Fios modem would be or is it 2 items like a standalone cable modem that then feeds to a separate router?

3a.)  If it's separate then please provide me with the model of your modem.

4.)  If DDNS was setup and you have a domain name for your Synology box, have you done any port forwarding in your modem and/or router to ensure that the traffic can get in from the outside?

 

If you can help me out with some of that I'm sure that we can get you up and running.

  • Like 1
Link to comment
Share on other sites

hollerme

Thanks for this, and to answer your questions:

 

1.)  Did you setup your Synology with DDNS and did you take not of the domain name that they provided you? Is this the one that goes username.synology.me in which case yes I did.

2.)  What type of router or modem do you have? BT Smart Hub

3.)  Is your router also your modem like a Verizon Fios modem would be or is it 2 items like a standalone cable modem that then feeds to a separate router?

3a.)  If it's separate then please provide me with the model of your modem. I believe my router is also my modem.

4.)  If DDNS was setup and you have a domain name for your Synology box, have you done any port forwarding in your modem and/or router to ensure that the traffic can get in from the outside? I think so (I used the YouTube video above) but plan on calling my internet provider to check and confirm.

You don't want to setup your app using the external IP address... That is subject to change before you are able to get back.

The whole key to being able to access your system from a Dynamic IP address is to have your Synology setup with a DDNS server.  By doing this it will provide you with a domain name that will use whatever the current IP address of your Synology is... So in a couple of weeks, days, months, etc... when your ISP changes your IP address you will still be able to access it.

 

So to better assist you in figuring this out help me out with a few things.

 

1.)  Did you setup your Synology with DDNS and did you take not of the domain name that they provided you?

2.)  What type of router or modem do you have?

3.)  Is your router also your modem like a Verizon Fios modem would be or is it 2 items like a standalone cable modem that then feeds to a separate router?

3a.)  If it's separate then please provide me with the model of your modem.

4.)  If DDNS was setup and you have a domain name for your Synology box, have you done any port forwarding in your modem and/or router to ensure that the traffic can get in from the outside?

 

If you can help me out with some of that I'm sure that we can get you up and running.

Link to comment
Share on other sites

hollerme

It has, I've replied to one of the posts above just now so hopefully with the community's support I can get remote access up and running this week.

 

@@hollerme has any of this information helped?

Edited by hollerme
  • Like 1
Link to comment
Share on other sites

hollerme

Okay, I am trying to create a port forwarding rule on my router. It shows available devices some of which have titles that make sense (Android) and others which don't. How do I find out which one my Synology is?

Link to comment
Share on other sites

pmurphy0881

AWESOME!!!

 

That is the info that I needed.

 

So yes, you do have a DDNS service configured for your synology device.  It is the <name>.synology.me that has been assigned to your device.

 

So the only thing standing in your way is the port forwarding to get this working.  So what you are going to want to do is to now find the ip address of your synology device and setup the port forwarding.

There is a link below for your make/brand of gateway router on how to setup port forwarding, but there are a few versions so not sure which one to direct you to.

 

http://bt.custhelp.com/app/answers/detail/a_id/8790/~/how-do-i-set-up-port-forwarding-on-my-bt-hub%3F

 

If you cannot identify by IP the device(your synology) that you want to direct the traffic to then you will need to find the mac address for the synology.  Most will show both the IP and Mac when choosing a device.

 

Synology has been assigned the following mac identifier     00:11:32  so should you not be able to find it and you only have 1 synology hooked up look for a mac address starting with that code.  It should be your synology.

  • Like 1
Link to comment
Share on other sites

hollerme

Thanks for this, I have identified my Synology with your tip and am now on the next step to set up port forwarding. For the Internal/External Ports do I just fill it with the number 80? And what Protocol should I select (options were: TCP, UDP, TCP/UDP)?

 

AWESOME!!!

 

That is the info that I needed.

 

So yes, you do have a DDNS service configured for your synology device.  It is the <name>.synology.me that has been assigned to your device.

 

So the only thing standing in your way is the port forwarding to get this working.  So what you are going to want to do is to now find the ip address of your synology device and setup the port forwarding.

There is a link below for your make/brand of gateway router on how to setup port forwarding, but there are a few versions so not sure which one to direct you to.

 

http://bt.custhelp.com/app/answers/detail/a_id/8790/~/how-do-i-set-up-port-forwarding-on-my-bt-hub%3F

 

If you cannot identify by IP the device(your synology) that you want to direct the traffic to then you will need to find the mac address for the synology.  Most will show both the IP and Mac when choosing a device.

 

Synology has been assigned the following mac identifier     00:11:32  so should you not be able to find it and you only have 1 synology hooked up look for a mac address starting with that code.  It should be your syno

Link to comment
Share on other sites

pmurphy0881

Thanks for this, I have identified my Synology with your tip and am now on the next step to set up port forwarding. For the Internal/External Ports do I just fill it with the number 80? And what Protocol should I select (options were: TCP, UDP, TCP/UDP)?

 

1.)  What ports do I just fill it with?   You are going to setup 2 port forwards.  One for http and one for https  If you are using the standard Emby installation you will use port 8096 for http and 8920 for https.

       1a.)  When setting these ports you should have an option for source port number and destination port number.  They should be the same.

 

Example:      Source Port number:    8096           Destination:  Your Synology device         Destination port number:    8096           Protocol:     TCP

         

2.)  What protocol should I select?    TCP

 

When you setup your app on your mobile device after you have this setup you will enter the DDNS name given to you by synology as the server name/destination and the port number that your emby server uses.  I would first try the 8096 port first so we don't have to worry about any SSL certifications getting in the way.

  • Like 1
Link to comment
Share on other sites

hollerme

Hi,

 

I don't see http or https - this is what is on my screen when creating the port forwarding rule:

 

5cf038b292d78_SynologyPortForwarding.jpg

So that I don't make a mistake can you advise which figure I should input into each of these 3 fields?

 

 

1.)  What ports do I just fill it with?   You are going to setup 2 port forwards.  One for http and one for https  If you are using the standard Emby installation you will use port 8096 for http and 8920 for https.

       1a.)  When setting these ports you should have an option for source port number and destination port number.  They should be the same.

 

Example:      Source Port number:    8096           Destination:  Your Synology device         Destination port number:    8096           Protocol:     TCP

         

2.)  What protocol should I select?    TCP

 

When you setup your app on your mobile device after you have this setup you will enter the DDNS name given to you by synology as the server name/destination and the port number that your emby server uses.  I would first try the 8096 port first so we don't have to worry about any SSL certifications getting in the way.

Link to comment
Share on other sites

pmurphy0881

Since you are only using 1 port you would have the start and end port be the same.

 

 

   External                  Internal

    Ports                       Ports      

Start     End            Start        End          

8096     8096          8096        8096

 

 

What I meant by http was that you will access your Emby server using an standard http web connection... You just won't be using the standard port assigned to that.... And that's good, you shouldn't for something like this.

  • Like 1
Link to comment
Share on other sites

hollerme

Thank you, I turned my phone's wi-fi off and it worked so looks like good news and thank you so much for this!

 

Would you happen to know what I need to do to achieve the same when my laptop is abroad (and also to copy files onto my Emby server/Synology again when away)? Or is that just  a case of going to username.synology.me and dragging the files on to it?

 

I'm really delighted about this!

Since you are only using 1 port you would have the start and end port be the same.

 

 

   External                  Internal

    Ports                       Ports      

Start     End            Start        End          

8096     8096          8096        8096

 

 

What I meant by http was that you will access your Emby server using an standard http web connection... You just won't be using the standard port assigned to that.... And that's good, you shouldn't for something like this.

Edited by hollerme
Link to comment
Share on other sites

pmurphy0881

Thank you, I turned my phone's wi-fi off and it worked so looks like good news and thank you so much for this!

 

Would you happen to know what I need to do to achieve the same when my laptop is abroad (and also to copy files onto my Emby server/Synology again when away)? Or is that just  a case of going to username.synology.me and dragging the files on to it?

 

I'm really delighted about this!

 

 

You would just go to your synology domain through the web along with the proper port number.

 

 

http://username.synology.me:8096

 

then log in.  cant help much with the synology part for file transfers, but that video or the synology webite may have more on that.  you just want to make sure that if more ports need to be forwarded that you do it before you leave and no longer have access to your router.

Edited by pmurphy0881
Link to comment
Share on other sites

yarez0

You can add more security globally to your synology with https connection and embeded reverse proxy, it's a little bit tricky but you can redirect all traffic to https/443 with a certificate and HSTS. with that you only have to open 80 and 443 ports to the internet.

 

Here is my setup, do all the steps locally to avoid network discruption.

 

  • STEP 1 : open ports 80 and 443 to internet

log to your router, in my case in France it is a Freebox, redirect 80 and 443 to internal IP of your synology. 1 port = 1 rule

 

5cf638112966f_80.png 5cf6381cb7213_443.png

 

  • STEP 2 : create a ddns name

in my case its a noip account, you can have 3 dynamic dns for free. create your account and your domain name. if you are creating it at your home the setup will put your public IP directly. create a DNS HOST (A) and fill the right public IP

 

5cf639c3a6615_DDNS.png

 

  • STEP 3 : configure DDNS update in the synology

in my case the DDNS is configured into my router but you can configure it in the synology. CONTROL PANNEL - EXTERNAL ACCESS - DDNS - CREATE

 

5cf63a9deab55_EXTERNAL_1.png

 

fill you DDNS service provider, domain name and account, by default the synology knows the external IP. test the connection, the status has to be normal

 

5cf63bc3e1154_EXTERNAL_2.png 5cf63bec85932_EXTERNAL_3.png

 

  • STEP 4 : adding security
    • STEP 4a : redirect all traffic to https/443 port

go to CONTROL PANNEL - NETWORK - DSM PARAMETERS and activate redirections http to https, HTTP/2 and ngynx, then activate personnal domain name with your DOMAIN NAME and HSTS

 

5cf63d334801c_HSTS.png

 

 

now your web server will restart, if you try to connect to your synology with http://<name>.ddns.net (in my case) it will redirect to https://<name>.ddns.net. with that you don't have to connect externaly to your synology with the 5000 or 5001 port (and blocked by firewalls generally). all the traffic pass through 443/https port

 

 

  • STEP 4b : create a let's encrypt certificate

443 is good, certificate is better, go to CONTROL PANNEL - SECURITY - CERTIFICATE. choose LET'S ENCRYPT and fill your domain name and your mail address. The OTHER NAME is if you want multiple name with the same certificate. 

 

in my case I have :

  1. XXXX.ddns.net is my primary domain name
  2. XXXXvideos.ddns.net is a second name for emby (you have to create it in your DDNS service provider)
  3. XXXXplex.ddns.net is my third name for plex (you have to create it in your DDNS service provider)
  4. and multiple other names

 

5cf63f8e080aa_certificat_1.png

 

once create, you can show all the services mapped to your certificate

 

5cf6413387642_certificat_2.png

 

after reload of the syno web server, you have a valid certificate and crypted connections

 

5cf641bf118be_certificat_3.png

 

  • STEP 5 : reverse proxy emby

now we have to redirect 8096 emby port to 443 to enjoy https, HSTS and your certificate, but if XXXX.ddns.net is your synology, how connect to emby ? by creating redirecting host name in your DDNS service provider and reverse proxying

 

  • STEP 5a : new DDNS host name

go back to your DDNS service provider and create a new host name : 

 

  1. create a hostname
  2. record type : DNS ALIAS (CNAME)
  3. target : your domain name

so XXXXvideos.ddns.net will redirect to XXXX.ddns.net

 

5cf6436c22c3f_CNAME.png

 

  • STEP 5b : reverse proxying

go to CONTROL PANNEL - APPLICATIONS PORTAL - REVERSE PROXY

 

5cf644b494ca0_REVERSE_1.png

 

create a redirection like this :

 

  1. you said : https connections to XXXXvideos.ddns.net (in my case) on the 443 port
  2. with HSTS and HTTP/2
  3. redirect to HTTPS, localhost, on port 8920 (8920 is the https port)

you can redirect to HTTP, localhost, on port 8096, I put 8920 for testing an other thing and I let it

 

5cf645b5119bd_REVERSE_2.png

 

and your done !

 

I don't configure anything else in emby, no external connection, the only security is for Ombi, all the configuration is made by the syno

 

5cf646b40e8dd_REVERSE_3.png

 

  • STEP 6 : add your second name to your certificate

you created a certificate with your domain name on STEP 4b but you did not create your second name, so if you connect to XXXXvideos.ddns.net you will have a certificate name problem. go back to CONTROL PANNEL - SECURITY - CERTIFICATE and renew your certificate, recreate it and add your second name

 

and voilà !

 

5cf64772ad379_REVERSE_4.png

 

 

with that, I have multiple services on my synology (video station, file station, audio station, plex, emby, ombi, unifi controller, photos web server...), I reverse proxy everything so the only port accessible externaly are 80 (for let's encrypt renew) and 443.

note that if you wants to resolve your public DNS in your local network, you have to install the synology's DNS server, create a zone master with

  • your public name
  • local IP of your NAS
  • add redirector (google, cloud flare...)

the modify your router DHCP to make your NAS as DNS server instead of the router itself

image.png.ae316d51a5f081de6a87fd44866c834a.png

image.png.5110b34ab864e59fde0035a978afe552.png

note that if your nas is down you will not be able to resolve any public dns name (of course)

enjoy

Edited by yarez0
add DNS Server info
  • Like 4
Link to comment
Share on other sites

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