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

WebRTC: ICE failed, add a TURN server and see about:webrtc for more details #109

Open
crstian19 opened this issue Jun 28, 2021 · 3 comments

Comments

@crstian19
Copy link

crstian19 commented Jun 28, 2021

Hi, I made Dockerfile for this app and i run it in my server with traefik as reverse proxy. In LAN it works perfectly but when I try to run it in a public IP like VPS Server i've got this error:

WebRTC: ICE failed, add a TURN server and see about:webrtc for more details.

Looking for information I think that I need a to expose STUN ports.

https://www.html5rocks.com/en/tutorials/webrtc/infrastructure/
swappy-20210628_110339

@rupadana
Copy link

got same error

@dbl0null
Copy link

Common way to deal with this kind of problems is to set up your own dedicated TURN server.

You can try COTURN:
https://gabrieltanner.org/blog/turn-server

Personally I prefer to stick to Golang stack and use Pion's excellent TURN implementation:
https://github.com/pion/turn/blob/master/examples/turn-server/simple/main.go

You'll need to add you new TURN to PeerConnection config on client side:
https://github.com/deepch/RTSPtoWebRTC/blob/master/web/static/js/app.js#L6

@kumarbhupi
Copy link

Hi, I was wondering if I need to add the TURN credentials in both client and server side?
And how can I add it on server side?

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