Open in the explorer

Restrict exposure of local IP address by WebRTC

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 77, Windows 7 or later
ADMX file
msedge.admx
Internal name
msedge/WebRtcLocalhostIpHandling

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\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/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 String

Disable

# 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 SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Restrict exposure of local IP address by WebRTCWebRtcLocalhostIpHandlingDrop-down listenumWebRtcLocalhostIpHandlingREG_SZ
LabelValue
Allow all interfaces. This exposes the local IP addressREG_SZ = default
Allow public and private interfaces over http default route. This exposes the local IP addressREG_SZ = default_public_and_private_interfaces
Allow public interface over http default route. This doesn't expose the local IP addressREG_SZ = default_public_interface_only
Use TCP unless proxy server supports UDP. This doesn't expose the local IP addressREG_SZ = disable_non_proxied_udp

Application

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

Official templates downloaded on November 12, 2026.