Janus on Docker container, ICE failed for component 1 in stream 1

829 views
Skip to first unread message

Greer Viau

unread,
Oct 17, 2021, 10:31:14 PM10/17/21
to meetecho-janus
I have a VM running Windows Server 2019, and I have an Ubuntu 20.04 docker container that I build Janus on from source. I have it running and have configured the docker container to forward traffic on ports as follows:
80:80 (for nginx server hosting janus html files)
8188:8188
8088:8088
8089:8089
8000:8000
7088:7088
7089:7089
I can access the janus api successfully from a machine outside the VM by pointing api calls to the Ip of the VM.
On the VM, I can navigate to http://<ip_of_container>/streamingtest.html and watch a test stream I have running.
My issue is when I try to access http://<ip_of_VM>/streamingtest.html to watch the stream. I can view the streaming test page, start it and load a stream from the list. But the stream just gets stuck with "Starting, please wait...". The network tab on chrome reveals api calls to http://<ip_of_VM>:8088/janus/2740829440119106?rid=1634524136801&maxev=10 returning 200 response codes and bodys of 
0: {janus: "keepalive"}
From the Janus logs, I see the Error ICE failed for component 1 in stream 1...
I'm not sure if theres a portion of the network traffic im forgetting to forward to the docker container, any help is greatly appreciated. Thanks.

Lorenzo Miniero

unread,
Oct 18, 2021, 2:58:10 AM10/18/21
to meetecho-janus
Janus needs more ports for media as well: https://www.januscon.it/2019/talk.php?t=docker

L.

Greer Viau

unread,
Oct 18, 2021, 10:11:55 AM10/18/21
to meetecho-janus

Are there specific ports I need to configure in docker? I think I see from those slides forwarding traffic for the STUN requests via 20000:40000 and 40000:20000> I tried this and I am still having the same issue.

Greer Viau

unread,
Oct 20, 2021, 1:09:26 PM10/20/21
to meetecho-janus
So I was able to configure the docker container to forward port 10000-10200-10000-10200/udp and I configured janus with rtp port range of the same. I also configured nat_1_1_mapping="<ip_of_windows_vm>". I am now able to receive some data outside the LAN, but its not coming through completely, and janus is giving errors [ERR] [ice.c:janus_ice_outgoing_traffic_handle:4663] [1503964074615263] ... only sent -1 bytes? (was 1506)
I feel like Im missing one last piece of configuration. Do I need a stun server or is there something small that Im missing?
On Monday, October 18, 2021 at 2:58:10 AM UTC-4 lmin...@gmail.com wrote:

Lorenzo Miniero

unread,
Oct 21, 2021, 2:51:09 AM10/21/21
to meetecho-janus
1506 > MTU. Send smaller packets.

L.
Reply all
Reply to author
Forward
0 new messages