How to set Windows 10 to prefer IPv4 over IPv6
Description
Cause

Disabling IPv6 in Windows 10 will break many components of Windows, such as any Unified Windows Platform (UWPP application. Also many Windows Updates will fail to install

Resolution

[BCB:4:Operating system warning:ECB]

Modify the registry

Manually Edit Windows Registry

  1. Open Regedit - press Windows+R keys, type "Regedit" in the Run window, Enter.
  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters.
  3. Double-click on DisabledComponents, if DisabledComponents is unavailable, you must create it; otherwise skip to step 5:
    1. Right-click on Parameters (in the left pane)
    2. Select New, then DWORD (32-bit) Value
    3. Enter "DisabledComponents" and then press Enter
  4. Double-click DisabledComponents.
  5. Change the Value data to 20 and the Base setting to Hexadecimal.
  6. After modifying this value, reboot the workstation, and windows will default to IPv4.

Run a netsh command

  1. From an elevated CMD prompt run: netsh interface ipv6 set prefixpolicy ::ffff:0:0/96 46 4.
  2. This will set the precedence of IPV4 to 46 just below localhost (50).
Steps to duplicate
Related Solutions