How to Disable IPv6: Windows vs Ubuntu for IPv6 Configuration

Disable IPv6 only when you have a clear compatibility problem, a broken VPN, or a legacy network that cannot handle it. For most home and office users, IPv6 should stay enabled because modern Windows, Ubuntu, browsers, routers, and cloud services expect it to exist. Still, there are real cases where turning it off stops connection drops, DNS delays, printer failures, or odd VPN behavior. The process is simple on both systems, but Windows hides part of it behind menus and registry values, while Ubuntu spreads it across NetworkManager, sysctl, and Netplan.

TLDR: On Windows, the fastest method is to uncheck Internet Protocol Version 6 in the network adapter settings, while the stricter method uses PowerShell or the registry. On Ubuntu, use sysctl for a system-wide switch, or NetworkManager for a single connection. For example, a small office with 25 Windows laptops saw VPN login failures drop from 18% to 2% after disabling IPv6 on one older VPN profile. Test first, document the change, and avoid turning IPv6 off everywhere just because one app is cranky.

Why Disable IPv6 at All?

IPv6 was built to replace IPv4 and solve address exhaustion. It also removes many ugly workarounds, such as heavy NAT use. So why would anyone disable it?

The short answer is: old software, poor router firmware, bad DNS settings, and VPN clients that should have been retired years ago. Honestly, it feels like IPv6 gets blamed for everything, even when the real problem is sloppy network configuration. But when a device keeps trying IPv6 first and fails before falling back to IPv4, users feel the delay.

Common reasons include:

  • VPN leaks: Some VPNs route IPv4 traffic but leave IPv6 exposed.
  • Slow DNS lookups: A broken IPv6 DNS path can add seconds to page loads.
  • Old business apps: Legacy tools may bind poorly to IPv6 interfaces.
  • Printer or NAS issues: Some devices advertise IPv6 but do not respond correctly.
  • Testing needs: Admins may need a clean IPv4-only lab.

Before disabling it, try fixing DNS, router firmware, and VPN settings. If that fails, targeted IPv6 shutdown is fair.

How to Disable IPv6 on Windows

Windows gives you two main options. You can disable IPv6 per network adapter through the graphical interface, or you can use PowerShell and registry settings for a deeper change.

Option 1: Disable IPv6 Through Adapter Settings

This is the easiest method and works well for most desktop users.

  1. Press Windows + R.
  2. Type ncpa.cpl and press Enter.
  3. Right-click your active adapter, such as Wi Fi or Ethernet.
  4. Select Properties.
  5. Uncheck Internet Protocol Version 6 TCP/IPv6.
  6. Click OK.
  7. Restart the connection, or reboot the PC.

This does not remove IPv6 from Windows. It only disables it for that adapter. That is usually what you want. It is clean, reversible, and low risk.

Option 2: Disable IPv6 with PowerShell

For admins, PowerShell is faster. Open PowerShell as administrator and list adapters:

Get-NetAdapterBinding -ComponentID ms_tcpip6

Then disable IPv6 on a specific adapter:

Disable-NetAdapterBinding -Name "Ethernet" -ComponentID ms_tcpip6

To enable it again:

Enable-NetAdapterBinding -Name "Ethernet" -ComponentID ms_tcpip6

Replace Ethernet with the actual adapter name. Windows adapter names are not always friendly. Expect to waste time on this if your machine has VPN adapters, virtual switches, Docker adapters, or Hyper-V bridges.

Option 3: Registry Method for System Behavior

Microsoft does not usually recommend fully removing IPv6. Some Windows components expect it. If you still need to adjust system-wide IPv6 preference, use the registry key below:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters

Create or edit a DWORD 32 bit value named:

DisabledComponents

A common value is:

0x20

This makes Windows prefer IPv4 over IPv6 without fully disabling IPv6. That is often safer than a total shutoff. Reboot after changing it.

How to Disable IPv6 on Ubuntu

Ubuntu offers several paths. The right one depends on whether you use a desktop machine, a server, NetworkManager, or Netplan. The annoying part is that two Ubuntu systems can look identical but use different network back ends.

Option 1: Disable IPv6 Temporarily

This method lasts until reboot. It is useful for quick testing.

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1

To turn it back on:

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0

This is the best first test because it does not permanently alter startup files.

Option 2: Disable IPv6 Permanently with sysctl

For a persistent setup, edit a sysctl configuration file:

sudo nano /etc/sysctl.conf

Add these lines:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Apply the change:

sudo sysctl -p

Reboot and verify. This method is common on servers and test boxes.

Option 3: Disable IPv6 with NetworkManager

Ubuntu Desktop often uses NetworkManager. You can change IPv6 settings per connection.

  1. Open Settings.
  2. Go to Network or Wi Fi.
  3. Click the gear icon beside the active connection.
  4. Open the IPv6 tab.
  5. Set the method to Disable or Ignore.
  6. Save and reconnect.

You can also use the terminal:

nmcli connection show

Then disable IPv6 on a named connection:

nmcli connection modify "Wired connection 1" ipv6.method disabled
nmcli connection down "Wired connection 1"
nmcli connection up "Wired connection 1"

If the connection name contains spaces, keep the quotes.

Option 4: Disable IPv6 with Netplan

Ubuntu Server commonly uses Netplan. Check the files here:

/etc/netplan/

Edit the YAML file:

sudo nano /etc/netplan/01-netcfg.yaml

A simple example:

network:
  version: 2
  ethernets:
    enp0s3:
      dhcp4: true
      dhcp6: false
      accept-ra: false

Apply it:

sudo netplan apply

Be careful with remote servers. A bad Netplan file can cut your SSH session. If possible, use sudo netplan try so Ubuntu rolls back if you lose access.

Windows vs Ubuntu: Which Is Easier?

Windows is easier for one adapter. The checkbox method takes under a minute. It is simple for support teams to explain over the phone.

Ubuntu is better for scripted control. You can apply the same sysctl or Netplan policy across many machines with Ansible, cloud init, shell scripts, or configuration management tools. That matters for labs and servers.

The real difference is scope. Windows tends to focus on adapter-level changes unless you touch the registry. Ubuntu gives you system-wide settings, connection-level settings, and boot-time network rules. Great power, more places to make a typo.

How to Check If IPv6 Is Disabled

On Windows, run:

ipconfig /all

Look for IPv6 addresses under your active adapter. You can also run:

Get-NetAdapterBinding -ComponentID ms_tcpip6

On Ubuntu, run:

ip addr

If IPv6 is active, you will usually see addresses starting with fe80, 2001, or another IPv6 prefix. You can also check the sysctl value:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6

A result of 1 means disabled. A result of 0 means enabled.

Best Practice: Prefer IPv4 Instead of Killing IPv6

If your goal is to fix delays, prefer IPv4 first rather than disabling IPv6 completely. On Windows, the DisabledComponents value of 0x20 can do that. On Ubuntu, you can tune name resolution and application binding without shutting IPv6 down for every interface.

For security, do not ignore IPv6 just because your IPv4 firewall looks good. If IPv6 is enabled, secure it. Add firewall rules. Check VPN routing. Confirm DNS behavior. An unseen IPv6 route can create a quiet bypass around controls that only watch IPv4.

The best plan is boring but solid: test the problem, disable IPv6 only where needed, verify the result, and write down what changed. Your future self will appreciate that note when the next network issue appears six months later.

I'm Ava Taylor, a freelance web designer and blogger. Discussing web design trends, CSS tricks, and front-end development is my passion.
Back To Top