-
I'm trying to limit webrtc UDP connections to a port range so that they can be NAT port forwarded by users of an IOT device. So far I haven't been able to figure this out, does anyone know how to select a port range for webrtc-rs? I see in |
Beta Was this translation helpful? Give feedback.
Answered by
k0nserv
Nov 28, 2022
Replies: 1 comment 2 replies
-
This can be configured via let mut ephemeral_udp = EphemeralUDP::default();
ephemeral_udp.set_ports(4000, 4050)?;
let mut setting_engine = SettingEngine::default();
setting_engine.set_udp_network(UDPNetwork::Ephemeral(ephemeral_udp));
let api = APIBuilder::new()
.with_setting_engine(setting_engine)
.build(); EDIT: Updated to use public API so it actually compiles. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
D1plo1d
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be configured via
SettingEngine::set_udp_network
as followsEDIT: Updated to use public API so it actually compiles.