TURN Relay Demo

TL;DR: TURN is a relay that forwards encrypted packets when direct peer-to-peer (P2P) connection fails. With end-to-end encryption, the relay can move bytes, but it cannot read the contents.

Imagine you are sending a locked box to a friend. The box can travel two different routes, but it stays locked the whole time.

What is "media"? In a call, media means your voice and video.
What does "encrypted" mean? It is turned into scrambled secret data (a locked box).
What is "end-to-end"? Only Caller A and Caller B can unlock it. Not Wi-Fi, not TURN, not the server.
Real-life example
Think of mailing a locked box:
  • Direct route: the box goes straight to your friend.
  • Relay route: the box goes through a helper place that forwards packages.
The helper can see a package exists, but cannot open the box.

Pick the route

The route changes where the encrypted data travels. The locked box (encrypted payload) stays the same size.

What you should notice

Watch two things: (1) the route and (2) the payload size. When you switch routes, the payload size stays the same. Only the path changes.

🔒 Encrypted frame = a tiny piece of your voice/video, scrambled into secret data.

Technical demo (simple)

Here is a tiny preview of the encrypted data (it looks like nonsense on purpose):

Generating...

Switching between Direct and TURN does not change the payload size. The preview changes only when you click "Make a new locked box".

Mode:
Payload size: bytes
Route:

What TURN is (in plain English)

TURN is like a package forwarding station. If two devices cannot reach each other directly (Wi-Fi rules, school networks, hotels, firewalls), TURN helps by passing the encrypted data through.

What TURN can and cannot do
  • TURN can: move/relay encrypted bytes (like forwarding a package).
  • TURN cannot: read what is inside the encrypted bytes (cannot open the locked box).

Real-life examples