Multiple STUN servers
Configuring more than one STUN server provides no real benefit, since all STUN servers return the same type of public address information. Using multiple entries can slow down the connection by adding extra ICE checks without improving reliability. Limit configuration to a single STUN server.
Description
Each STUN server essentially provides the same public IP and port information, so adding more servers does not improve connectivity or reliability. Instead, it multiplies ICE checks across all network interfaces, which can slow down connection setup and generate additional network traffic without providing any significant benefit.
You should limit the STUN servers configured to a single one, if any (TURN/UDP configurations act as STUN servers by default already as well).
What do we do here?
We check if any of the peer-connections has an iceServers parameter that contains more than 1 STUN server.
Our suggestions
- Don't use more than 1 STUN server
- If you have TURN/UDP configured (and you probably should have), then consider removing the STUN server as well, since TURN/UDP also seconds as a STUN implementation for WebRTC