Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICE failed for component 1 in stream 1... #16

Open
mohammadhasanzadeh opened this issue Jan 8, 2021 · 6 comments
Open

ICE failed for component 1 in stream 1... #16

mohammadhasanzadeh opened this issue Jan 8, 2021 · 6 comments

Comments

@mohammadhasanzadeh
Copy link

Hello,
I get the ICE failed for component 1 in stream 1... error on the local network,
My container IP is 172.18.0.2 and my host IP is 192.168.8.100,
I also tested with STUN and TURN server, but error still occurs.
it seems is a docker container networking error, Any ideas for this ?

@mohammadhasanzadeh
Copy link
Author

mohammadhasanzadeh commented Jan 16, 2021

I fixed this issue by adding nat_1_1_mapping = "192.168.8.100" in the Janus file.
I'm not sure this is the correct way, but that works.

@michkish
Copy link

I think that because janus-gateway is in docker container, the program identifies 172.18.X.X is local ip(172.18.X.X is docker inner ip).

@michkish
Copy link

this bug I think should resign to janus dev team, janus program did not know it was in a docker container. Your suggestion also helped me, and I suggest try set network_mode to host also can fix the bug if you use docker-compose.

@mohammadhasanzadeh
Copy link
Author

mohammadhasanzadeh commented Apr 16, 2021

Yes, for my case, both of the solutions works, but I use the second workaround (network_mode).

@llspalex
Copy link

nat_1_1_mapping didn't work for me but setting network_mode to host did work - though I'm not sure why.

@alexberezin
Copy link

Hello! Other thing worked for me - I set STUN server. It turns out, that it's important for docker, because it uses NAT.
Set this parameters in janus.jcfg:
stun_server = "stun.l.google.com"
stun_port = 19302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants