Jump to content

Docker image remote access


Go to solution Solved by Luke,

Recommended Posts

Posted (edited)

Hi,

I recently deployed Emby using a container image on DockerHub (emby/embyserver). Everything works great locally but I can't access the service remotely. I have a double NAT setup but  I'm able to expose ports and port forward to other containers in my environment externally but not the Emby container.  Seems to be a problem specific to Emby. Has anyone else run into this issue? Emby is correctly detecting my external IP and my port forwarding rules are configured the same way I do for other containers that are accessible.

Thanks in advance.

Edited by agolia
mastrmind11
Posted (edited)
11 hours ago, agolia said:

Hi,

I recently deployed Emby using a container image on DockerHub (emby/embyserver). Everything works great locally but I can't access the service remotely. I have a double NAT setup but  I'm able to expose ports and port forward to other containers in my environment externally but not the Emby container.  Seems to be a problem specific to Emby. Has anyone else run into this issue? Emby is correctly detecting my external IP and my port forwarding rules are configured the same way I do for other containers that are accessible.

Thanks in advance.

Try starting the container in host mode.

docker run -d \
    --name emby-server \
    --restart unless-stopped \
    --network="host" \
    --volume /home/docker/emby/config:/config \
    --volume /storage:/storage \
    --device /dev/dri/renderD128 \
    --publish 8096:8096 \
    --publish 8920:8920 \
    --env UID=1008 \
    --env GID=117 \
    --env GIDLIST=1000,1002,44 \
    emby/embyserver:latest

 

Edited by mastrmind11
Posted

Thanks for the reply. I'm deploying a stack on Swarm so unfortunately the network mode option is ignored. I tried by deploying a single standalone container using --network="hosts" but it is still not accessible remotely. 

mastrmind11
Posted

Seems odd.  I can access mine remotely.  Do you have a proxy set up or anything else non-standard in the way?

Posted

No proxy. I have my Verizon router which connects to my Ubiquiti Unifi security gateway.  My Verizon router forwards port 8096 to the security gateway. The security forwards 8096 to my Swarm cluster.  Same setup works for all of my containers/ports except for the Emby container.

  • Solution
Posted

You could always try a different public facing router port.

Posted

Thanks for the reply.  Just tried that but unfortunately same result.

Posted

Thanks for all the help. It appears that for some reason my FIOS router wouldn't forward port 8096 (or 8095) so I decided to try something in a lower range and it worked. No idea why but it'll do for what I need. Thanks again 

Posted

Thanks for the feedback !

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