Udp port range used by Janus

1,489 views
Skip to first unread message

langei...@gmail.com

unread,
Nov 7, 2018, 3:06:18 PM11/7/18
to meetecho-janus
Hi,

We have set the following setting in janus.cfg
rtp_port_range = 20000-40000

We expected that the used udp port range would also be 20000-40000
but janus is requesting Ports in the 50000 range.

Do we need to set a different setting?

Thanks
Martijn

Lorenzo Miniero

unread,
Nov 7, 2018, 9:15:16 PM11/7/18
to meetecho-janus
That range only applies to WebRTC PeerConnections. It will not apply to how plugins bind to ports, instead (e.g., SIP calls).

Lorenzo

langei...@gmail.com

unread,
Nov 8, 2018, 12:09:51 AM11/8/18
to meetecho-janus
Thanks Lorenzo! And is there a way to limit the UDP port range for the recordanplay plug-in?

Lorenzo Miniero

unread,
Nov 8, 2018, 2:02:54 AM11/8/18
to meetecho-janus
The Record&Play plugin doesn't use any port, only the WebRTC ones the core uses. If you see ports outside the port range, either you're not configuring the range correctly (e.g., setting still commented out, or in the wrong section), or your libnice version doesn't support the feature (which you'll be warned about at startup).

Lorenzo
Reply all
Reply to author
Forward
0 new messages