How to change default TCP/IP from IPv6 to IPv4?

Many of us were disabling IPv6 protocol on a system, where it was not used. You can find many blog articles, where people are recommending disabling IPv6 (unfortunately the procedure in most of these articles is not correct).

Times are changing, and more organizations are preparing for IPv6 implementation. At iRangers we see this more often, especially on large-scale projects for government offices, banks, and other enterprise level companies.

Personally, I still prefer to have IPv4 protocol to be a default protocol on a task critical servers (by default, since Windows Vista IPv6 is a default protocol). So, here is a small trick on how to change the default TCP/IP protocol from IPv6 to IPv4. Execute the following command through command line or script:

%windir%\system32\REG.EXE ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents /t REG_DWORD /d 0x20 /f

I hope you find this trick useful. 🙂

Feel free to contact me, or any other Best IT Experts in Canada to discuss this or any other IT related challenges you have in your business. Don’t forget to subscribe to our news letter.

Right in your email inbox
Useful data from iRangers Experts

Subscribe to our mailing list and get interesting updates and tips.

2 thoughts on “How to change default TCP/IP from IPv6 to IPv4?

  1. Hello
    Thanks for posting this article it is very helpful
    What if I am not using IPv6 in our environment and have no plans to use IPv6 for the foreseeable feature.
    can I simply un-tick the check box against IPv6 to it is not bound to the network card in the first instance ?
    I have done this before on my Windows 10 computer when attached to a corporate network (Active Directory domain) and it appears to work OK,
    I assume then, that un-ticking the check box for IPv6 is not the same as disabling the protocol ?
    Thanks very much

    1. Thanks for your question, unfortunately the answer is no. Unticking the box doesn’t disable IPv6 at all. Moreover, this is not a supported scenario by Microsoft. So technically speaking we’re all using IPv6 from Vista since 2006, and since then it’s a part of the network stack. So if you do not have any reason to disable it, just leave it alone. But if you do have weighty reason to disable it, just do it using our reg hack.
      iRangers team

Leave a Reply

Your email address will not be published. Required fields are marked *