Restrict exposure of local IP address by WebRTC
Explanation
Allows you to set whether or not WebRTC exposes the user's local IP address.
If you set this policy to "AllowAllInterfaces" or "AllowPublicAndPrivateInterfaces", WebRTC exposes the local IP address.
If you set this policy to "AllowPublicInterfaceOnly" or "DisableNonProxiedUdp", WebRTC doesn't expose the local IP address.
If you don't set this policy, or if you disable it, WebRTC exposes the local IP address.
Note that this policy doesn't provide an option to exclude specific domains.
Policy options mapping:
* AllowAllInterfaces (default) = Allow all interfaces. This exposes the local IP address
* AllowPublicAndPrivateInterfaces (default_public_and_private_interfaces) = Allow public and private interfaces over http default route. This exposes the local IP address
* AllowPublicInterfaceOnly (default_public_interface_only) = Allow public interface over http default route. This doesn't expose the local IP address
* DisableNonProxiedUdp (disable_non_proxied_udp) = Use TCP unless proxy server supports UDP. This doesn't expose the local IP address
Use the preceding information when configuring this policy.
Example value: default
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\EdgeHKEY_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/WebRtcLocalhostIpHandling
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Restrict exposure of local IP address by WebRTC
# Possible options:
# Allow all interfaces. This exposes the local IP address = default
# Allow public and private interfaces over http default route. This exposes the local IP address = default_public_and_private_interfaces
# Allow public interface over http default route. This doesn't expose the local IP address = default_public_interface_only
# Use TCP unless proxy server supports UDP. This doesn't expose the local IP address = disable_non_proxied_udp
Set-ItemProperty -Path $k -Name 'WebRtcLocalhostIpHandling' -Value 'default' -Type StringDisable
# Disable: msedge/WebRtcLocalhostIpHandling
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": msedge/WebRtcLocalhostIpHandling
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'WebRtcLocalhostIpHandling' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Restrict exposure of local IP address by WebRTCWebRtcLocalhostIpHandling | Drop-down listenum | WebRtcLocalhostIpHandling | REG_SZ |
|
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.