-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
STUN message send failed / STUN local ufrag check failed. #223
Comments
The The |
Understood about the errno=101. The STUN server is stun.l.google.com:19302. The WebRTC peer is a Chrome browser and the server that uses libdatachannel runs in AWS. Not sure which data point is the one you are asking for. Note that this happens before the Chrome browser connects. It is during the ICE establishment phase of setting up a peer connection. I use ICE/STUN to determine the server's public IP address and reachable port to be able to provide an offer as soon as a client connects over the signalling web socket. |
It could be caused by a earlier peer connection on the same port as the new one closed on server side but not timed out on another client. Do you add tracks only and no datachannels? Have you changed libdatachannel's port range to something custom?
Note that you should not keep the peer connection waiting with an unsent generated offer, instead you should create it only when the websocket is connected. |
I add an audio and video track, as well as a data channel. And yes, I have limited the port range so I don't have to open too many ports on my EC2 instance. You could very well be right that it is responses from an older session. I will check that.
Ok. I did it in the interest of quickly starting the session, but I see that it may cause problems. Thanks for your help. I consider the issues satisfactorily addressed until I can provide more information. |
I use libjuice as part of libdatachannel and regularly see sequences of messages like this:
Most of the times I setup a session I don't see the messages, however, in approximately 10% of the sessions the pattern repeats multiple times until it seems to settle. Any idea whether this is an error on my behalf, occasionally to be expected or a bug in the library?
The text was updated successfully, but these errors were encountered: