iam tring to self hosting the livekit and i got th...
# ask-ai
n
iam tring to self hosting the livekit and i got this error The logs I sent show that the LiveKit server is running fine and is connecting to Redis, but the connection between the participant and the server via ICE/UDP is completely failing. That’s why all participants are being disconnected immediately after joining (SIGNAL_SOURCE_CLOSE). 2025-09-04T091614.474Z INFO livekit.transport rtc/transport.go:2511 ICE candidate pair stats {"room": "test-room", "roomID": "RM_Lo779QxVMME8", "participant": "test-user", "pID": "PA_SYyjmRPGqfc2", "remote": false, "transport": "SUBSCRIBER", "stats": [{"state": "failed", "nominated": false, "local": "16.171.204.154:50018 udp type(host/), priority(2130706431)", "remote": "172.19.0.1:33508 udp type(host/), priority(2130706431)", "requestsSent": 8, "responsesReceived": 0, "requestsReceived": 0, "responsesSent": 0, "firstRequestSentAt": "2025-09-04T091559.300Z", "lastRequestSentAt": "2025-09-04T091600.416Z", "firstResponseReceivedAt": "1754-08-30T224341.128Z", "lastResponseReceivedAt": "1754-08-30T224341.128Z", "firstRequestReceivedAt": "1754-08-30T224341.128Z", "lastRequestReceivedAt": "1754-08-30T224341.128Z"}, {"state": "failed", "nominated": false, "local": "16.171.204.154:50018 udp type(host/), priority(2130706431)", "remote": "172.17.0.1:58685 udp type(host/), priority(2130706431)", "requestsSent": 8, "responsesReceived": 0, "requestsReceived": 0, "responsesSent": 0, "firstRequestSentAt": "2025-09-04T091559.272Z", "lastRequestSentAt": "2025-09-04T091559.504Z", "firstResponseReceivedAt": "1754-08-30T224341.128Z", "lastResponseReceivedAt": "1754-08-30T22:
t
Thanks for reaching out, Mohamed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! I know those ICE/UDP connection failures can be pretty frustrating, but don’t worry—we can tackle this together by going through a few helpful steps: 1. Check Your Port and Firewall Settings: Make sure the right ports are open. For ICE/UDP, that’s usually ports 50000–60000, or port 7882 if you’re using UDP mux. If you’re falling back on ICE/TCP, port 7881 needs to be open. And if TURN is in play, double-check that ports 3478 and 5349 (or 443) are accessible. 2. Try the Connection Test Utility: Running some diagnostic tests can really help pinpoint where things might be going wrong—this includes tests for WebRTC, TURN, and overall protocol connectivity. 3. Keep an Eye on ICE Candidate Gathering: Watch the ICE candidates during negotiation. If you’re only seeing private candidates, it might mean there’s an issue with NAT traversal or public IP setup. 4. Turn On Fallback Options: Make sure ICE/TCP fallback is enabled on your server. You can also nudge the client to use TURN by setting
iceTransportPolicy: 'relay'
. 5. Check the Logs: Server logs can be super insightful—look out for ICE state changes and timing events that might hint at network blocks or timeouts. 6. Look Into Deployment Details: If you’re running on Kubernetes, double-check that UDP port ranges are exposed properly, pods are scheduled as they should be, and network policies aren’t blocking UDP traffic. Going through these steps should really help clear things up. And hey, if you hit any snags or want a hand with any part of this, just let me know—I’m here to help! Sources: Room & Participant Management | livekit/livekit_composite | DeepWiki | Kubernetes & Helm Charts | livekit/livekit_composite | DeepWiki | Protocol & WebRTC | livekit/livekit_composite | DeepWiki | Ports and firewall | LiveKit Docs | Firewall Tips