Open in the explorer

WebRTC IP Handling Policy for URL Patterns

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Microsoft Edge › WebRtc settings User Configuration › Policies › Administrative Templates › Microsoft Edge › WebRtc settings
Supported on
Microsoft Edge version 135, Windows 7 or later
ADMX file
msedge.admx
Internal name
msedge/WebRtcIPHandlingUrl

Explanation

Controls which IP addresses and network interfaces WebRTC can use
when establishing connections for specific URL patterns.

How It Works:
Accepts a list of URL patterns, each paired with a handling type.
WebRTC evaluates patterns sequentially; the first match determines the handling type.
If no match is found, WebRTC defaults to the WebRtcLocalhostIpHandling WebRtcLocalhostIpHandling. policy.
This policy applies only to origins—URL path components are ignored.
Wildcards (*) are supported in URL patterns.

Supported Handling Values:
default – Uses all available network interfaces.
default_public_and_private_interfaces – WebRTC uses all public and private interfaces.
default_public_interface_only – WebRTC uses only public interfaces.
disable_non_proxied_udp – WebRTC uses UDP SOCKS proxying or falls back to TCP proxying.

More Information:
Valid input patterns: https://go.microsoft.com/fwlink/?linkid=2095322
Handling types: https://tools.ietf.org/html/rfc8828.html#section-5.2

Example value:

[
{
"url": "https://www.example.com",
"handling": "default_public_and_private_interfaces"
},
{
"url": "https://[*.]example.edu",
"handling": "default_public_interface_only"
},
{
"url": "*",
"handling": "disable_non_proxied_udp"
}
]

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge
HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Computer (HKLM)

Enable

# Enable: msedge/WebRtcIPHandlingUrl
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# WebRTC IP Handling Policy for URL Patterns
Set-ItemProperty -Path $k -Name 'WebRtcIPHandlingUrl' -Value '<value>' -Type String

Disable

# Disable: msedge/WebRtcIPHandlingUrl
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": msedge/WebRtcIPHandlingUrl
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'WebRtcIPHandlingUrl' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
WebRTC IP Handling Policy for URL PatternsWebRtcIPHandlingUrlText boxtextWebRtcIPHandlingUrlREG_SZ
Max length: 1000000

Application

Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.