Setting the file. One moment.
Chapter 04 · Cloudflare Deploy
Subchapter 4.239
references/turn/README.mdMarkdown4 KBView on GitHub
Expert guidance for implementing Cloudflare TURN Service in WebRTC applications.
Cloudflare TURN (Traversal Using Relays around NAT) Service is a managed relay service for WebRTC applications. TURN acts as a relay point for traffic between WebRTC clients and SFUs, particularly when direct peer-to-peer communication is obstructed by NATs or firewalls. The service runs on Cloudflare’s global anycast network across 310+ cities.
| File | Purpose |
|---|---|
| api.md | Credentials API, TURN key management, types, constraints |
| configuration.md | Worker setup, wrangler.jsonc, env vars, IP allowlisting |
| patterns.md | Implementation patterns, use cases, integration examples |
| gotchas.md | Troubleshooting, limits, security, common mistakes |
| Task | Files to Read | Est. Tokens |
|---|---|---|
| Quick start | README only | ~500 |
| Generate credentials | README → api | ~1300 |
| Worker integration | README → configuration → patterns | ~2000 |
| Debug connection | gotchas | ~700 |
| Security review | api → gotchas | ~1500 |
| Enterprise firewall | configuration | ~600 |
stun.cloudflare.com:3478/udpstun.cloudflare.com:53/udp (blocked by browsers, not recommended)turn.cloudflare.com:3478/udpturn.cloudflare.com:53/udp (blocked by browsers)turn.cloudflare.com:3478/tcpturn.cloudflare.com:80/tcpturn.cloudflare.com:5349/tcpturn.cloudflare.com:443/tcp