Issue with commit 9ff205dd?

As was discussed in Remote returned status code 400, ICE usually needs a bit more ports than the amount of P2P connections you want to have. What that commit does is it adds another STUN server, thus (roughly?) doubling the amount of STUN binding requests your proxy does.

So I suspect what’s happening is you run out of ports and stop being able to make STUN requests, making the amount of candidates you send in the answer 0, and the broker currently rejects answers with 0 ICE candidates.

To “revert” that commit, try adding -stun=stun:stun.l.google.com:19302 to only use one STUN server again, or try increasing the ephemeral ports range again.

And I could sort of reproduce it with the same CLI arguments on my VPS, where at some point it stopped including server-reflexive candidates in the answer and only sending host candidates.

2 Likes