Which destination protocol does LiveKit use? Is it...
# ask-ai
f
Which destination protocol does LiveKit use? Is it TCP, TLS or UDP?
t
Thanks for reaching out, Ayush. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
LiveKit supports multiple destination protocols depending on the network conditions: • UDP: Preferred for real-time media due to its low latency and efficiency. • TCP: Used as a fallback when UDP is unavailable, often in restrictive networks. • TLS: Employed for encrypted connections, particularly when UDP is blocked. LiveKit uses a fallback mechanism, starting with ICE over UDP, then TURN with UDP, followed by ICE over TCP, and finally TURN with TLS if previous methods fail. This ensures reliable connectivity across different network environments. Sources: Connecting to LiveKit | LiveKit Docs | Configuring firewalls | LiveKit Docs | config-sample.yaml | livekit-ffi/src/livekit.proto.rs | Connecting to LiveKit | LiveKit Docs