What's the UDP port for whitelisting?
# ask-ai
f
What's the UDP port for whitelisting?
t
Thanks for reaching out, Ayush. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The UDP ports for whitelisting in LiveKit are in the range of 50000 to 60000. These ports are used for WebRTC traffic and should be opened in your firewall to ensure proper connectivity. Sources: config-sample.yaml | Ports and firewall | LiveKit Docs
f
Is their a way to ovveride these ports?
t
Absolutely! You can definitely override the UDP port range for LiveKit. By default, it’s set to 50000-60000, but you have the flexibility to change it by updating the
port_range_start
and
port_range_end
in your RTC configuration file. Here’s a quick example:
Copy code
rtc:
  port_range_start: 50000
  port_range_end: 60000
Feel free to pick any valid range that works best for your setup. Just make sure the ports are in a continuous range, with the end port higher than the start port. Also, remember to set both values together so everything runs smoothly.
f
How to do it when using LiveKit cloud?
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!