I'm glad to help you understand how TURN servers in LiveKit support TLS fallback on port 443. This feature is especially useful in restrictive network environments where standard UDP or non-HTTPS TCP traffic might be blocked.
Here are some common situations where TURN/TLS fallback comes to the rescue:
•
Corporate Firewalls Blocking UDP: Many enterprise firewalls block UDP traffic, but TURN/TLS over TCP/443 can keep you connected as long as the TURN domain is whitelisted.
•
NAT or Firewall Blocks Non-Standard Ports: If direct UDP connections aren’t working, TURN/TLS provides a reliable relay path through port 443.
•
Unstable UDP: When UDP connectivity is spotty, TURN/TLS helps maintain your connection smoothly.
•
No Load Balancer: If you’re exposing the TURN server directly, setting the TLS port to 443 makes sure it stays accessible.
Think of TURN/TLS on port 443 as a dependable fallback in WebRTC’s transport setup, designed to keep your media connection steady even in challenging network conditions. If you have any questions or need further clarification, feel free to ask—I’m here to help!
Sources:
pkg/service/turn.go |
Firewall Tips |
Deploying LiveKit | LiveKit Docs