How can a helper carry a message to your friend?
01The direct path is blocked in this example. Ask a TURN server to lend you a relay address, then watch where that address lives.
Follow one small step. Then change one choice below.
Your device has a note
This chosen direct path is blocked. Learning an outside address did not fix it.
Try a reachable relay
The helper will carry messages between two working legs of the trip.
What happens if you change this?
Try one change. Restart puts the original example back.
Receive the relayed address and lifetime.
Key idea: Borrow a reachable address on a helper. The helper carries the data; the address alone does not open every gate.
Terms
- TURN
- Traversal Using Relays around NAT. It lets a device control a server that carries data to and from peers.
- Relay address
- An address and port reserved on the relay server, not a new address on your own device.
- Allocation
- The server’s temporary reservation of a relay address and related state.
Rules & examples
Borrow a helper’s address when the direct path is blocked.
- The borrowed address lives on the server, not on your device.
- Valid service access and available capacity are needed.
Start with the small note and the helper. Open the optional explanations for technical terms and exact RFC rules.
Chosen IPv4 UDP relay address 203.0.113.40:55000. An authenticated Allocate request requests a UDP relay and receives XOR-RELAYED-ADDRESS, XOR-MAPPED-ADDRESS and LIFETIME on success. The relay address and server-observed client address are different. This example assumes reachable client–server and server–peer paths, supported address family and successful policy checks. Access cases are chosen outcomes, not a cryptographic or complete authentication implementation; see the STUN lesson for message-integrity experiments. TURN also supports IPv6 and other client–server transports. This guide models UDP relay traffic, not the RFC 6062 TCP relay extension.
Sources
New to this? Start hereA quick picture + helpful background
Finding a route and sending media are separate jobs.
Some messages set up a conversation or discover a reachable address. Other packets carry the audio or video. Follow those jobs separately.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
This revision incorporates IPv6 support and REQUESTED-ADDRESS-FAMILY, adds DTLS support, and aligns TURN with updated STUN.
Read the updated RFC section ↗