Tweak registry to make Windows always prefer IPv4 over IPv6

One of those basic things that Microsoft changed for us, when logged into a Windows 7 or Server 2008 R2 server and you ping itself you get a IP6 address.  Few shops have converted to IP6 yet so this is how you change that address back to IP4.  I do this in my Windows Templates in VMware.

  • Open RegEdit, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tcpip6\Parameters
  • Create DisabledComponents DWORD registry value, set its value to 20 (Hexadecimal).
  • Reboot.

See Microsoft KB 929852 for more info.

Advertisements
  1. #1 by Pål Amundsen on February 6, 2014 - 3:02 am

    Thanks! This helped me overcome an issue where I could not reach some of my servers when connected through VPN

  2. #2 by Juzzee on August 13, 2014 - 3:17 pm

    great tip, thank you (god I hate IPv6 and windows 2012)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: