From 59e9bb41b9d65f26603695e106bfac0fcbecf3f8 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Tue, 24 Mar 2026 15:52:05 +0530 Subject: [PATCH] Fix TURN server URL (#4389) Addresses https://github.com/livekit/livekit/issues/4384 --- pkg/service/roommanager.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/service/roommanager.go b/pkg/service/roommanager.go index 9bb4e3cf4..c9aeaed30 100644 --- a/pkg/service/roommanager.go +++ b/pkg/service/roommanager.go @@ -1023,7 +1023,9 @@ func (r *RoomManager) iceServersForParticipant(apiKey string, participant types. if r.config.TURN.UDPPort > 0 && !tlsOnly { // UDP TURN is used as STUN hasSTUN = true - urls = append(urls, fmt.Sprintf("turn:%s:%d?transport=udp", r.config.RTC.NodeIP, r.config.TURN.UDPPort)) + for _, ip := range r.config.RTC.NodeIP.ToStringSlice() { + urls = append(urls, fmt.Sprintf("turn:%s:%d?transport=udp", ip, r.config.TURN.UDPPort)) + } } if r.config.TURN.TLSPort > 0 { urls = append(urls, fmt.Sprintf("turns:%s:443?transport=tcp", r.config.TURN.Domain))