How to Disable IPv6 in Windows 11: Settings and PowerShell

Mudin Saiful

Illustration of a switch in the off position for a guide on how to disable IPv6 in Windows 11

Hi everyone, in this post I want to show you how to disable IPv6 in Windows 11. IPv6 is the newer version of the internet addressing protocol, and Windows turns it on by default. The problem is that plenty of home and office networks still do not fully support IPv6, which can lead to symptoms like a slow first connection, older apps that fail to connect, or a VPN that leaks traffic over IPv6.

In this guide I walk through three methods on Windows 11: turning off IPv6 through Settings, through PowerShell, and the method Microsoft actually recommends, which is making Windows prefer IPv4 without turning IPv6 off. I verify every method with ipconfig and ping, and I also show you how to turn IPv6 back on.

Warning: Microsoft itself does not recommend disabling IPv6 completely, because some Windows features use IPv6 internally. If all you want is for your connection to use IPv4, go with the third method below. Only turn IPv6 off completely if an app or network really has trouble with IPv6.

Check Whether IPv6 Is On

Look for IPv6 addresses with ipconfig

ipconfig output on Windows 11 still showing IPv6 Address, Temporary IPv6 Address, and Link-local IPv6 Address

Press Windows + R, type cmd, and press Enter. Run the following command to list every IP address on the computer.

ipconfig | findstr IPv

On my computer three IPv6 lines show up, IPv6 Address, Temporary IPv6 Address, and Link-local IPv6 Address, next to the IPv4 Address 10.0.2.15. Those IPv6 lines tell you that IPv6 is still active on the network adapter.

Method 1: Disable IPv6 Through Settings

Open Network & internet

Network and internet menu in Windows 11 Settings with the Advanced network settings option

Press Windows + I to open Settings, click Network & internet in the left menu, then click Advanced network settings near the bottom.

Open the network adapter details

Windows 11 Advanced network settings page with the arrow button to open the Ethernet adapter details

The Network adapters section lists the adapter in use. On my computer it is called Ethernet. If you are on WiFi, the adapter is named Wi-Fi. Click the arrow at the far right of the adapter to open its details.

Click Edit on More adapter options

Ethernet adapter details with the Edit button on More adapter options in Windows 11

In the adapter details, click the Edit button on the More adapter options row. This button opens the same adapter properties window you would find in Control Panel, so there is no need to dig for it through ncpa.cpl.

Uncheck Internet Protocol Version 6

Internet Protocol Version 6 TCP IPv6 unchecked in Ethernet Properties on Windows 11

In the Ethernet Properties window, scroll the list until you find Internet Protocol Version 6 (TCP/IPv6), uncheck it, then click OK. Leave every other item in the list as it is.

Check again with ipconfig

ipconfig output after turning off IPv6 showing only the IPv4 Address

Run ipconfig | findstr IPv again in Command Prompt. You can see that only the IPv4 Address is left, which means IPv6 is now off on that adapter. The change takes effect right away without a restart.

My experience: On my first try, IPv6 still showed up in ipconfig after I clicked OK. When I opened the properties window again, the IPv6 box was still checked, so my OK click had not been saved. After I repeated it and clicked OK once more until the window actually closed, IPv6 disappeared immediately. So always double check with ipconfig after changing this setting.

Method 2: Disable IPv6 Through PowerShell

This is the fastest method, and you can use it on many computers at once. Open Terminal (Admin) by right clicking the Start button and choosing Terminal (Admin), as I covered in the guide on how to change DNS in Windows 11.

Check the IPv6 status and turn it back on

Get-NetAdapterBinding and Enable-NetAdapterBinding ms_tcpip6 commands in Windows 11 PowerShell
Get-NetAdapterBinding -ComponentID ms_tcpip6
Enable-NetAdapterBinding -Name Ethernet -ComponentID ms_tcpip6
Get-NetAdapterBinding -ComponentID ms_tcpip6

The Get-NetAdapterBinding command shows the IPv6 status of every adapter. Since I turned it off through Settings earlier, the Enabled column reads False. The Enable-NetAdapterBinding command turns it back on, so the status changes to True. ms_tcpip6 is the name of the IPv6 component in Windows, and it stays the same no matter which display language your Windows uses.

Turn off IPv6 with Disable-NetAdapterBinding

Turning off IPv6 with Disable-NetAdapterBinding and checking it with ipconfig in PowerShell
Disable-NetAdapterBinding -Name Ethernet -ComponentID ms_tcpip6
Get-NetAdapterBinding -ComponentID ms_tcpip6
ipconfig | findstr IPv

The status is back to False and ipconfig only shows the IPv4 Address. Replace Ethernet with the name of your own adapter, for example Wi-Fi. If you want to turn off IPv6 on every adapter at once, replace the adapter name with an asterisk (-Name *).

Method 3: Prefer IPv4 Without Disabling IPv6

This is the method Microsoft recommends on its Guidance for configuring IPv6 in Windows page. IPv6 stays on, but Windows uses IPv4 first whenever it has a choice. You do this by creating a registry value named DisabledComponents set to 0x20.

Check first with ping localhost

Ping localhost answered by the IPv6 address ::1 while Windows 11 still prefers IPv6

Before changing the registry, turn IPv6 back on with Enable-NetAdapterBinding as in the second method, then run the following command.

ping -n 1 localhost

The ping is answered by ::1, which is the IPv6 loopback address. That means Windows currently prefers IPv6.

Add DisabledComponents 0x20

Adding the DisabledComponents registry value 0x20 to prefer IPv4 in Windows 11

Still in Terminal (Admin), run the following commands.

reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents /t REG_DWORD /d 0x20 /f
reg query HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents

The reg query output shows DisabledComponents REG_DWORD 0x20. This registry change only takes effect after a restart, so restart your computer.

Check the result after restarting

After a restart ping localhost is answered by 127.0.0.1 while the IPv6 addresses stay active
ping -n 1 localhost
ipconfig | findstr IPv

After the restart, ping localhost is answered by 127.0.0.1, which is the IPv4 loopback address. Yet ipconfig still shows the IPv6 addresses. You can see that IPv6 is still on, but Windows now prefers IPv4.

Note: The value 0x20 only makes Windows prefer IPv4. If you come across other guides that use 0xFF, that value disables every IPv6 component, and according to Microsoft it can cause problems with some Windows features. Only use 0xFF if you truly need it.

Turning IPv6 Back On

Delete the registry value and make sure the binding is on

Deleting the DisabledComponents registry value and checking the IPv6 binding is back to True in PowerShell
reg delete HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents /f
Get-NetAdapterBinding -ComponentID ms_tcpip6

Delete the DisabledComponents value, then restart so Windows goes back to its default behavior. Also make sure the Enabled column in Get-NetAdapterBinding reads True. If it still says False, run Enable-NetAdapterBinding or check Internet Protocol Version 6 (TCP/IPv6) again in the adapter properties window.

Common Problems and How to Fix Them

IPv6 still shows up in ipconfig after turning it off

You probably turned it off on a different adapter, for example Ethernet while you are actually using Wi-Fi. Run Get-NetAdapterBinding -ComponentID ms_tcpip6 to see the status of every adapter, then turn it off on the right one.

PowerShell shows No MSFT_NetAdapterBindingSettingData objects found

The adapter name you typed is wrong. Look up the correct name in the Name column of the Get-NetAdapterBinding output, then run the command again. Adapter names are also sensitive to spaces, for example Ethernet 2.

The registry is changed but ping localhost still goes to ::1

The DisabledComponents change only takes effect after a restart. Also make sure the value you entered is 0x20 and not decimal 20, because the two produce different numbers.

A Windows feature or app misbehaves after IPv6 is turned off

Some Windows features use IPv6 internally. If problems appear after you turn IPv6 off, turn it back on and use the third method (Prefer IPv4) instead.

That is it, you can now turn off IPv6 in Windows 11 or simply make IPv4 take priority over it, and you can undo all of it at any time. If you run into any errors along the way, just leave a comment below.

Leave a Comment