canyanio / janus-gateway-docker

Docker image for the Janus WebRTC Server
Other
160 stars 64 forks source link

UDP Ports / example Janus config #12

Open yspreen opened 3 years ago

yspreen commented 3 years ago

Hey, I love the project! It seems to be the most active Janus docker container project out there.

I am struggling with some of the core concepts, though. How do you expect clients to connect to a webrtc server that's not only behind a NAT but doesn't expose any UDP ports whatsoever? Is a TURN server a mandatory requirement for using this docker image? If not, how else would a UDP connection for actual media routing be made?

We're currently running Janus on a fully exposed machine with a 1:1 NAT mapping to its public IP. This deployment works fine, but the UDP ports offered by Janus' SDP is part of a huge range, and that's apparently one of the key requirements for running a webrtc server for media routing: https://serverfault.com/questions/954715/webrtc-mcu-sfu-inside-kubernetes-port-ranges

I appreciate any feedback on this!

daniel-abramov commented 3 years ago

If you run it inside the docker container, you would have to expose ports and provide STUN and TURN configuration. If you don't do so, the warning in the logs will also point out to the problem, telling that it won't work outside of the docker network. I personally used --network host to run it on the host network and since the host had its own public IP address, it worked just fine.