Jump to content

Emby on Docker: Port for DLNA


Recommended Posts

IceBoosteR
Posted

Hi all,

 

I was wondering that DLNA is not working when I run Emby on Docker. I have seen in the documentation that the HTTP and HTTPS ports are mentioned, but no port for DLNA. Therefore I think it is not working. On the other hand, DLNA is often on different ports, as it depends on the application.

I have found this thread:

https://emby.media/community/index.php?/topic/38373-dlna-ports/

 

From this I suggest I need to allow port 1900 and 1901 for DLNA?

If yes, I think this should be added to the documentation aswell.

 

Cheers,

Ice

Posted

Yes that's correct. Try using the host network mode.

IceBoosteR
Posted

Yes that's correct. Try using the host network mode.

Thanks, I will try to it it. So I need both ports? If I can resolve this by setting these ports I would really like to see it in the documentation, so others do have the same information.

Posted

You can try it, from what i've seen with Docker you will generally need host networking mode and not bridge.

  • 1 month later...
IceBoosteR
Posted

You can try it, from what i've seen with Docker you will generally need host networking mode and not bridge.

Hi Luke,

I have tried it. Did not work in bridge mode.

Posted

I would use host networking mode.

  • 1 month later...
IceBoosteR
Posted

I would use host networking mode.

In network-mode DLNA is working fine.

Just tried it.

Posted

Thanks for the feedback !

Posted

It just means that the Docker container will be able to utilize the network resources of the host system. This Docker wiki article may help clarify:

 

https://docs.docker.com/network/host/

 

Please let us know if this helps. Thanks.

  • Like 1
  • 1 year later...
Posted

The solution suggested in this thread also worked for me. Emby (via Docker) was not showing up in my DLNA list.

I would like to add the complete workaround to help people in the future: 

 

In Docker-Compose.yml I added the following line:

network_mode: host

Running docker via command line should add:

--network="host"

After restarting the Emby container I immediately noticed the Emby LAN access ip-address was changed to the correct 192.168.**

Now DLNA works great.

 

I agree with IceBoosteR, it would have been nice if these lines are described in the Docker Hub: https://hub.docker.com/r/emby/embyserver/

 

 

As for security there is indeed a risk as the container is not "contained" anymore, however for most users this should not be an issue. 

 
"Note: --network="host" gives the container full access to local system services such as D-bus and is therefore considered insecure." https://docs.docker.com/engine/reference/run/
  • 5 months later...
Posted

@mister_tb thanks for the feedback ! We will improve the Docker instructions to make a note of the network mode.

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