Ouvrir dans l'explorateur

Restrict exposure of local IP address by WebRTC

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Ordinateur et utilisateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Microsoft Edge › Paramètres WebRtc Configuration utilisateur › Stratégies › Modèles d'administration › Microsoft Edge › Paramètres WebRtc EN : Computer Configuration › Policies › Administrative Templates › Microsoft Edge › WebRtc settingsEN : User Configuration › Policies › Administrative Templates › Microsoft Edge › WebRtc settings
Pris en charge sur
Microsoft Edge version 77, Windows 7 or later
Fichier ADMX
msedge.admx
Nom interne
msedge/WebRtcLocalhostIpHandling

Explication

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

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge
HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Ordinateur (HKLM)

Activer

# Activer : 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
# Options possibles :
#   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

Désactiver

# Désactiver : msedge/WebRtcLocalhostIpHandling
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : msedge/WebRtcLocalhostIpHandling
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'WebRtcLocalhostIpHandling' -ErrorAction SilentlyContinue

Utilisateur (HKCU)

Activer

Désactiver

Revenir à « Non configuré »

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Restrict exposure of local IP address by WebRTCWebRtcLocalhostIpHandlingListe déroulanteenumWebRtcLocalhostIpHandlingREG_SZ
LibelléValeur
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) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.