You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TURN URL invalid hostname format when domain resolves to IP (v1.10.0) #4384
Describe the bug
When turn.domain is set to a hostname, LiveKit 1.10.0 resolves it to an IP and wraps it in curly braces, producing an invalid TURN URL: turn:{93.110.232.77 }:3478?transport=udp. This causes RTCPeerConnection to fail immediately on the client side and the call never connects.
Server
Version: 1.10.0
Environment: self-hosted, Docker, behind nginx reverse proxy
TURN enabled with domain set to a hostname (e.g. livekit.example.com)
Set turn.domain to a hostname (not a bare IP) in livekit.yaml
Start LiveKit 1.10.0
Client attempts to join a room
WebSocket opens but closes immediately with SIGNAL_SOURCE_CLOSE, sessionDuration: 0s
Browser console shows: ICE server parsing failed: Invalid hostname format
Expected behavior
TURN URL should be turn:93.110.232.77:3478?transport=udp or turn:livekit.example.com:3478?transport=udp — a valid format accepted by browsers.
Additional context
Downgrading to v1.9.12 fixes the issue immediately without any config changes
Workaround on 1.10.0: set turn.domain to a bare IP instead of a hostname
The malformed URL is visible in LiveKit WebSocket signal frames sent to the client
Reacted by Slava-Gll, deepmindru-afk, fingolfin0, Tillmann Heigel and Oleg Sobolev
Activity
Fix TURN server URL
boks1971 commentedon Mar 24, 2026
Thank you for reporting. This was caused by added support for IPv6. Fixing in #4389
Fix TURN server URL (#4389)
Bilal-io commentedon Mar 24, 2026
@boks1971 I deployed the :master version and we're still having issues.
biglittlebigben commentedon Mar 24, 2026
What TURN URL are you seeing on master?
Revert livekit_server to v1.9.12-1
Bump livekit to version 1.10.1
Bump livekit to version 1.10.1
strausfuenf commentedon Mar 31, 2026
For me it suddenly wants to use the wrong port even with 1.10.1 turn suddenly wants port 443 for TLS and ignores my config.
boks1971 commentedon Apr 1, 2026
TURN URL has been fixed in https://github.com/livekit/livekit/releases/tag/v1.10.1
@strausfuenf TURN/TLS has always used 443. This code has not changed.
Bump livekit to version 1.10.1
Fix TURN server URL (#4389)
Fix TURN server URL (#4389)