The LiveKit coturn service is not limited to client use; it actively establishes and manages TURN connections. It functions as a server component to handle relayed media when direct peer-to-peer connections are not possible, such as in restricted network environments. The service listens on configured ports for TLS and UDP connections, authenticates clients, and manages relay addresses to ensure reliable communication.
Sources:
Deploying LiveKit | LiveKit Docs |
Ports and Firewall | LiveKit Docs |
pkg/service/turn.go