How to set Windows 10 to prefer IPv4 over IPv6
Description
Cause
  • Disabling IPv6 is Windows 10 is confirmed to break many components of Windows, such as any UWP (Unified Windows Platform) application, and many Windows Updates which will fail to install
  • A networking issue has been detirmined to be caused by Windows preferring IPv6 addressing over IPv4 Addressing
Resolution
[BCB:4:Operating system warning:ECB]





Set Windows to prefer using IPv4 address over IPv6 by following one of the options below: (Must be done on both the server and the workstations)

Option 1: Modify the registry

  1. Refer to Microsoft KB https://docs.microsoft.com/en-US/troubleshoot/windows-server/networking/configure-ipv6-in-windows.
  2. The Microsoft Fixit tool has been retired.

Option 2: Manually Edit Windows Registry

  1. Open Regedit - press Windows+R keys, type "Regedit" in the Run window, Enter.
  2. Navigate 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.

Option 3: Run a netsh command

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