Explicitly allowed network ports
Explanation
There is a list of restricted ports built into Google Chrome. Connections to these ports will fail. This setting permits bypassing that list. The value is a comma-separated list of zero or more ports that outgoing connections will be permitted on.
Ports are restricted to prevent Google Chrome being used as a vector to exploit various network vulnerabilities. Setting this policy may expose your network to attacks. This policy is intended as a temporary workaround for errors with code "ERR_UNSAFE_PORT" while migrating a service running on a blocked port to a standard port (ie. port 80 or 443).
Malicious websites can easily detect that this policy is set, and for what ports, and use that information to target attacks.
Each port here is labelled with a date that it can be unblocked until. After that date the port will be restricted regardless of this setting.
Leaving the value empty or unset means that all restricted ports will be blocked. If there is a mixture of valid and invalid values, the valid ones will be applied.
This policy overrides the "--explicitly-allowed-ports" command-line option.
Example value:
10080
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Google\ChromeHKEY_CURRENT_USER\Software\Policies\Google\Chrome- 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: chrome/ExplicitlyAllowedNetworkPorts
$k = 'HKLM:\Software\Policies\Google\Chrome\ExplicitlyAllowedNetworkPorts'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Explicitly allowed network ports
# Non-additive list: existing values of the key are cleared first
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$values = @('<value1>', '<value2>') # Replace the values with your own
$i = 1
foreach ($v in $values) { Set-ItemProperty -Path $k -Name ('' + $i) -Value $v -Type String; $i++ }Disable
# Disable: chrome/ExplicitlyAllowedNetworkPorts
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": chrome/ExplicitlyAllowedNetworkPorts
$k = 'HKLM:\Software\Policies\Google\Chrome\ExplicitlyAllowedNetworkPorts'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Explicitly allowed network portsExplicitlyAllowedNetworkPortsDesc | List (table)list | Software\Policies\Google\Chrome\ExplicitlyAllowedNetworkPortsValues named “” + number | REG_SZ (values under the key) |
Application
Google Chrome (Google) — November 2026 templates
Official templates downloaded on November 12, 2026.