A student's open lab: learning and sharing, free for everyone.

SIP UniverseFree University

Home / WebRTC and SIP over WebSocket / ICE, STUN, and TURN

ICE, STUN, and TURN

ICE gathers host, server-reflexive, and relayed candidates. STUN and TURN are the tools. The default STUN port is 3478.

Learn in 5 minutes

  1. Name the three candidate kinds in RFC 8445
  2. Give the default STUN ports from RFC 8489
  3. Say what a TURN relay adds

Visual

Gather, then signal the result in SDP · study drawing · cyphermonkeylabs.com BrowserSTUN/TURNSIP server STUN MAP INVITE 200

SVG HTML PNG

Ports are the defaults in RFC 8489. Candidate names are from RFC 8445.

Worked example

Sort the candidates Three lines from a study checklist. Match each one to the RFC 8445 name.

  1. Read the local address.
  2. Read the mapped address.
  3. Read the relay address.

Fault

The browser sends REGISTER to port 3478 and waits for 200 OK. The packet that comes back is not SIP.

RFC 8489 assigns 3478 to STUN. RFC 7118 does not assign that port to SIP.

Quiz

A host candidate comes from


A server-reflexive candidate is


The default STUN port for UDP and TCP is


5349 is


TURN is


RFC 8839 covers


Ecosystem

Glossary, sister systems, and the integration seam for this room.

E911 / emergency calling Location has to ride with the call. RFC 6881 is the BCP, RFC 6442 carries location in SIP, and the FCC MLTS page states Kari’s Law and RAY BAUM’s Act obligations for multi-line systems.

Glossary · Ecosystem map · Ports · Troubleshooting

Sources and go deeper