question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Ice connection failed. Running my own STUN/TURN server

See original GitHub issue

I am running my own stun and turn server and I am getting the ERROR: Ice connection failed but I am getting it in a different spot than other issues…

I started with the examples and incrementally modded them along the way to fit into my react app.

  1. offer is generated, copied into external chat app and sent to peer
  2. peer copies offer and answer signal is generated.
  3. a few seconds later the peer connection fails with the error…
Error: Ice connection failed.
    at r._onIceStateChange (index.js:492)
    at RTCPeerConnection.t._pc.oniceconnectionstatechange (index.js:91)

this happens before the answer is sent back to the origin…If I look at the webrtc-internals in chrome I can see that iceconncectionstatechange has failed, but I don’t know how to go about getting a more detailed error. In my coturn logs I can see both users are sending requests and being authenticated, so IDK…

any ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
jeffwillettecommented, Feb 10, 2018

ok, yeah I wasn’t suggesting it would be documented here, but I was just saying that I couldn’t find it googling on any front. The only reason I knew about it was a low ranked answer on stack overflow that passingly mentioned it.

For anyone that finds this, I’ve opened a chrome bug

and here is the stack overflow post that mentions the timeout

0reactions
t-mullencommented, Feb 10, 2018

I’ve hit it in the past. The problem with documenting that in simple-peer is that it’s Chrome specific and is actually a recent change. I believe it used to be that if signalling objects were stale the connection would fail naturally rather than some arbitrary timeout.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"ICE failed, add a TURN server and see about:webrtc for more ...
A console.error appears WebRTC: ICE failed, add a TURN server and see about:webrtc for more details. I'm using a public google STUN server, ......
Read more >
Ice connection failed message on Firefox but works on Chrome
It works in your local machine because they're in same network. But it won't work in production(AWS) because they're in different networks and ......
Read more >
1288995 - ICE failed, see about:webrtc for more details
Create another webrtc peer connection using firefox 49 on another system. try to establish connection getting error ICE failed, see about:webrtc for more ......
Read more >
[SOLVED] Troubleshooting "There was a problem connecting ...
Opening a new thread to help troubleshoot “There was a problem connecting the video call.” errors with the new preview of video and...
Read more >
Troubleshooting WebRTC Connection Issues - Deconstruct
Failed WebRTC connections can be caused by restrictive networks behind ... Each WebRTC endpoint will ask the STUN/TURN server for it's own ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found