
On the server, create a new emby folder at the root level, and create three sub folders: config, media, and keys.

Ssh into your droplet using root as the username and your DigitalOcean password. If you’re using Cloudflare, you can do this by going to the DNS tab and adding a new A record. Go to your domain registrar and create a subdomain for your Emby server called emby and point it to the IP address of your DigitalOcean droplet. Once your server starts, copy the static IP of your server because you’ll need that in the next step. I selected the Docker on Ubuntu version to make things simpler: You can get a $200, 60-day credit if you use my referral link. I created a $5/month server with 1GB of RAM and 25GB of storage. I went with DigitalOcean because it’s very simple to create a cheap server which they call a “droplet”.

There are lots of options here: Linode, Hetzner, DigitalOcean, Amazon EC2, etc. This worked great for exposing my local server to the internet.The only issue I ran into is that for some reason, the tunnel doesn't work if I map https to localhost:443, but it does work if I map http to localhost:80 and then configure Emby to handle https via a reverse proxy. Using a Cloudflare Tunnel means you can skip steps 2, 3, 4, and 7 below. Follow the Set up your first tunnel docs on the Cloudflare Tunnel site. UPDATE: Since posting this, I've discovered that Cloudflare Tunnels are an alternative to actually hosting Emby on a server in the cloud. If you already have a domain, you can use that without creating a new one. You’ll end up making your Emby server a subdomain, like. I recommend getting a domain name that’s easy to remember and that you’ll want to use for a long time. I use Cloudflare and they’re pretty good. You’ll need a domain in order to run Emby securely (aka with https). Maybe in another year or so it’ll be ready. Alexa mostly works but Google Assistant doesn’t work well at all with Emby. However, if your main goal is to hook up your Emby to Amazon Alexa or Google Assistant, my recommendation is not to bother. I eventually got it working and figured I’d share how to do it in case it helps others. I wanted to try hosting it externally to see if it would simplify things, but I couldn’t find a good resouce on how to do this.

However, when you have it inside your network, it’s harder to access from your phone and you can’t hook it up to Amazon Alexa or Google Assistant.

I’ve been running Emby locally within our network on an old mini-pc because I’ve found it’s the easiest and most user-friendly way to share media within a family.
