Redundant STUN server
Configuring a separate STUN server while a TURN server is already handling UDP connectivity on the same port causes unnecessary ICE checks. This can slow down connection setup and increase network traffic without providing additional benefit. Use the TURN server for both relaying and STUN functionality.
Description
Configuring a STUN server alongside a TURN server on the same UDP port can create unnecessary ICE checks and slow down the connection.
Better remove that STUN server from your configuration.
What do we do here?
We check if STUN is redundant to a TURN server by comparing the protocol and port used to detect if a STUN server configured in the iceServers has the same port than a TURN/UDP configured.
If we find that the same server and port are used for a STUN and a TURN/UDP candidate then we raise this observation.
Our suggestions
- Remove the unnecessary STUN server. Your TURN/UDP server already acts like a STUN server as well