11
2- WebRTC Port Range Configuration
2+ Port Range Configuration
33===
44
55# Background
@@ -95,7 +95,13 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
9595 /// Sets the allowed port range for the specified network protocol.
9696 /// This allows WebView2 to work within enterprise firewall constraints
9797 /// by restricting network communication to the specified port range.
98- /// Currently WebRTC UDP port restriction is supported.
98+ /// Currently only WebRTC UDP port restriction is supported.
99+ /// minPort and maxPort must be in the range 1025-65535 (inclusive).
100+ /// Calls with invalid ranges fail with E_INVALIDARG.
101+ /// minPort must be less than or equal to maxPort.
102+ /// If minPort equals maxPort, it represents a single port.
103+ /// If (0,0) is passed as (minPort, maxPort), API will treat this as default
104+ /// value and no restrictions on ports will be applied.
99105 ///
100106 /// `protocol` The network protocol (TCP or UDP) for which to set the port range.
101107 /// `minPort` The minimum port number in the allowed range (inclusive).
@@ -109,8 +115,8 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
109115
110116 /// Gets the allowed port range for the specified network protocol.
111117 /// Returns the current port range configuration that was set via
112- /// SetAllowedPortRange. Default value is 0,0, which means no restrictions applied
113- /// and ports are allocated randomly between system's ephemeral range.
118+ /// SetAllowedPortRange. Default value is ( 0,0) which means no restrictions applied
119+ /// and ports are allocated randomly between system's ephemeral range 1025-65535 (inclusive) .
114120 ///
115121 /// `protocol` The network protocol (TCP or UDP) for which to get the port range.
116122 /// `minPort` Receives the minimum port number in the allowed range.
0 commit comments