Real-time / Web

ICE / STUN / TURN

ICE (Interactive Connectivity Establishment, RFC 8445) is a NAT-traversal protocol that finds a working media path between two endpoints by gathering candidate IPs/ports and trying them in priority order. STUN and TURN are the helper protocols ICE uses to discover those candidates.

Roles

Real-world cascade

  1. Try direct host-to-host (works on the same LAN).
  2. Try server-reflexive via STUN (works for ~80% of cone-NAT pairs).
  3. Fall back to TURN relay (works for ~99% of pairs — symmetric NATs, restrictive corporate firewalls, etc.).

Modern WebRTC clients use TURN-over-TCP-port-443 as the last resort, since 443 is rarely blocked.

DIDHub managed STUN/TURN

Every DIDHub SIP trunk includes free STUN and authenticated TURN at stun.didhub.io:3478 and turn.didhub.io:443. TURN credentials are short-lived (15 minutes) and minted via the dashboard or API.

Related terms

Ready to get a number?

Pick a DID in 130+ countries from $1.99/month. Activates instantly on most numbers.