TURNSTUN
TURNSTUN is a term used to describe the combined use of STUN and TURN protocols to enable real-time communications across networks that employ NAT. It refers to the practical workflow where connectivity is first tested with STUN and, if direct communication is not possible, media is relayed through a TURN server.
STUN, or Session Traversal Utilities for NAT, helps determine a client’s public IP address and port, and
TURN, or Traversal Using Relays around NAT, provides a relay service for media when direct paths cannot
In practice, TURNSTUN workflows are common in ICE, the connectivity framework used by WebRTC. ICE collects candidate
Security and deployment considerations include authentication, encryption (TLS for TURN, DTLS-SRTP for media), and access control
Implementations often rely on widely used TURN servers (such as coturn) and STUN libraries integrated into