polite-furniture-24847
11/19/2025, 8:29 AMtall-airline-16756
11/20/2025, 12:40 PMuse_external_ip is turned on in your configuration. Let’s walk through some steps together to help you resolve this:
• Verify network connectivity: Make sure your server can access the internet and reach STUN servers. You can check this using tools like nc or telnet on UDP port 3478.
• Check firewall and security rules: Double-check that UDP traffic is allowed outbound to STUN servers. You might need to adjust your firewall or security group settings.
• Validate DNS resolution: Confirm that your server can resolve the addresses of the STUN servers properly.
• Review configuration options:
◦ If you’re working with NAT or a complex network setup, try setting NAT1To1IP directly in your configuration instead of relying on automatic detection.
◦ If STUN discovery keeps failing, consider disabling use_external_ip and manually specifying the correct IP addresses.
• Test STUN server reachability: Check that your network can reach the default or alternative STUN servers without issues.
• Check system time synchronization: Ensure your server’s clock is properly synchronized, as time discrepancies can cause STUN protocol problems.
• Review deployment environment: If you’re running in containers, make sure your network setup allows UDP traffic (for example, by configuring Docker networking modes appropriately).
For production environments, it’s a good idea to either guarantee reliable access to STUN servers or explicitly configure the external IP using NAT1To1IP. This helps avoid relying solely on STUN-based discovery and keeps things running smoothly. If you have any questions or need more help, feel free to ask—I’m here to support you! Sources: Self-hosting the Ingress Service | LiveKit docs | pkg/sip/config.go | pkg/rtcconfig/ip.go