DotNetBrowser 1.8.2 introduces an ability to customize WebRTC IP handling policy.
There are a few WebRTC policies available in DotNetBrowser:
Default- this is the default behavior of Chromium. When this policy is set, WebRTC has the right to enumerate all interfaces and bind them to discover public interfaces.
DefaultPublicInterfaceOnly- this policy tells the browser to send WebRTC traffic via the default public network adapter. This will be the VPN adapter for system-VPN users. WebRTC should only use the default route used by http.
DefaultPublicAndPrivateInterfaces- same as
DDefaultPublicInterfaceOnly, except allowing WebRTC traffic through the default private interface to your local network as well.
DisableNonProxiedUdp> - disables non-proxied UDP and forces proxy. This policy forces the use of a proxy, and only allows WebRTC traffic over UDP proxies. This will effectively disable WebRTC communication for most users (depending on UDP proxy usage).
The following sample code demonstrates how to configure the WebRTC IP handling policy for a
browser.Preferences.WebRTCIPHandlingPolicy = BrowserPreferences.WebRTCIPHandlingPolicyEnum.DisableNonProxiedUdp;