Windows Networking: Prefer IPv6 over IPv4 and vice versa

This section contains user-submitted tutorials.
Post Reply
User avatar
Dravion
Senior user
Senior user
Posts: 2071
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Windows Networking: Prefer IPv6 over IPv4 and vice versa

Post by Dravion » 2019-07-29 09:14

If you want your Windows Operating system to prefer IPv4 before IPv6 Connections, you can switch quickly between
both modes:

To make it work:
1) Start a Windows Command prompt as Administrator
2) Type in one of the following Commands as you need

#Prefer IPv4 over IPv6
reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0x20

#Prefer IPv6 over IPv4 (which is Windows Default)
reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0x0

3) You must restart your computer for these changes to take effect.

This should work from Vista up to most recent Windows versions, regardless if your Windows is a Server, a Home, a Basic, a 32-Bit or
64-Bit version ect.

Read more:
https://support.microsoft.com/en-us/hel ... nced-users

Post Reply