c
hi
t
Thanks for reaching out, Arun. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi — how can I help you today? If you have an issue, please tell me: • What you're trying to do (e.g., join a room, stream video, set up auth) • Any error messages or unexpected behavior • Project ID, Room ID, SDK/language, and timestamps if relevant I can walk through troubleshooting steps or guide you on setup/configuration.
c
how to host turn server for likeit
t
You're asking how to host a TURN server for LiveKit — here’s a concise guide to get you running. 1) Choose embedded TURN (recommended) • LiveKit includes an embedded TURN server so you usually don't need a separate TURN deployment. Enable it in LiveKit's config. 2) Example config snippets • TURN/TLS (recommended):
Copy code
turn:
  enabled: true
  tls_port: 5349
  domain: turn.yourdomain.com
  cert_file: /path/to/turn.crt
  key_file: /path/to/turn.key
• TURN/UDP:
Copy code
turn:
  enabled: true
  udp_port: 443
3) DNS & TLS • Point your TURN domain (e.g., turn.yourdomain.com) to the server's public IP. • Use a valid TLS certificate for TURN/TLS. 4) Firewall / ports to open • 443 (TURN/TLS or TURN/UDP over 443) • 3478/UDP (classic STUN/TURN) • 5349 (TURN/TLS alternative) • If you use a load balancer, forward these ports to the LiveKit instance. 5) Authentication • LiveKit’s embedded TURN integrates with LiveKit auth so only authenticated clients can use it. Ensure your LiveKit auth is configured correctly. 6) Deployment options • VM/Docker: Docker Compose or VM + Caddy can provision TLS (Let’s Encrypt). • Kubernetes: Enable
turn.enabled: true
in the Helm chart and supply TLS secrets. If you want, tell me: • How you plan to deploy (VM, Docker, or Kubernetes) • Your domain name and whether you have TLS ready I’ll give the exact steps or Helm/docker config for your setup. Sources: Deploying LiveKit | LiveKit docs | Deploy to a VM | LiveKit docs | Ports and firewall | LiveKit docs | Development Setup & Infrastructure | livekit/livekit_composite | DeepWiki | Deploy to Kubernetes | LiveKit docs