How to Disable IPv6

The transition from IPv4 to IPv6 has been the “coming soon” story of networking for decades. However, as of early 2025, global adoption has finally surged past the 45% mark, with major providers like AWS shifting to IPv6-native defaults. While the industry pushes for a dual-stack or IPv6-only future, many power users, sysadmins, and privacy advocates still find themselves needing to disable the protocol.

In our testing at the network edge, we have found that while IPv6 offers superior address density, it frequently introduces “side-channel” data leaks for VPN users and creates significant latency in legacy enterprise software. The is also a huge amounts of services and applications that simply dont support IPV6 – Elastic I’m looking at you!

Based on these industry standards, this guide provides technical instructions for disabling IPv6 across Windows, macOS, and Linux, while weighing the critical security trade-offs.


⚡ Quick Answer: How to Disable IPv6

To disable IPv6 on

  • Windows, uncheck “Internet Protocol Version 6” in Network Adapter Properties.
  • For macOS, use sudo networksetup -setv6off Wi-Fi in Terminal.
  • On Linux, add net.ipv6.conf.all.disable_ipv6 = 1 to /etc/sysctl.conf and run sudo sysctl -p.


Why Disable IPv6?

Despite the benefits of the modern stack, there are 3 primary reasons behind choosing IPv4

  1. VPN IPv6 Leaks:
    Many legacy and mid-tier VPNs only tunnel IPv4 traffic. If IPv6 is active, your OS may resolve queries via the IPv6 gateway of your ISP, exposing your real location and ISP identity even while the VPN is “connected.”
  2. Legacy Application “Hang”:
    Some older enterprise databases and discovery services (like LLMNR) prioritize IPv6. If the local network isn’t perfectly configured for it, applications may wait for an IPv6 timeout before failing over to IPv4, causing a 3–5 second delay in initial connections.
  3. IoT Visibility Gaps:
    IoTv6 means devices often bypass NAT protections entirely. Disabling IPv6 at the host level is a common “hardening” step for systems that do not require external global addressing.

Disabling IPv6 is a common step for privacy-conscious users to ensure all traffic is forced through an IPv4 VPN tunnel, preventing potential “side-channel” data leaks.

Technical Deep-Dive: The Address Space Formula

The fundamental difference between the protocols lies in the mathematical scale.

IPv4 uses a 32-bit address, IPv6 utilizes a 128-bit structure.

The available address space can be represented as:

$$Total\ Addresses = 2^{n}$$

  • IPv4: $2^{32} \approx 4.29 \times 10^{9}$ (approx. 4.3 billion)
  • IPv6: $2^{128} \approx 3.4 \times 10^{38}$ (approx. 340 undecillion)

While this prevents address exhaustion, it complicates manual network management and increased the difficulty of scanning for security teams.


Step-by-Step: Disabling IPv6 on Windows 11 & 10

In Windows, you can disable IPv6 via the Control Panel or PowerShell. The Control Panel method is easiest for individual adapters, while PowerShell is better for a system-wide change.

how to disable IPv6 in Windows

Method 1: The GUI (Individual Adapter)

  • Press Win + R, type ncpa.cpl, and hit Enter.

  • Right-click your active connection (Ethernet or Wi-Fi).
  • Select Properties.
  • Locate Internet Protocol Version 6 (TCP/IPv6).
  • Uncheck the box and click OK.

Method 2: The point-and-click method

  1. Open the Control Panel and go to Network and Sharing Center.
  2. Click Change adapter settings on the left.
  3. Right-click your active connection (Wi-Fi or Ethernet) and select Properties.
  4. Uncheck the box for Internet Protocol Version 6 (TCP/IPv6).
  5. Click OK and restart your connection.

Method 3: PowerShell (System-Wide)

For sysadmins managing multiple machines, the CLI is more efficient:

  • Open PowerShell (Admin).
  • Run the following to identify your adapter names:

    Get-NetAdapterBinding -ComponentID ms_tcpip6
  • Disable IPv6 for all adapters:

    Disable-NetAdapterBinding -Name "*" -ComponentID ms_tcpip6

Get-NetAdapterBinding -ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name "*" -ComponentID ms_tcpip6


How to disable IPv6 in macOS (Ventura & Sonoma)

How to disable IPv6 in macOS (Ventura & Sonoma)

Apple has moved most networking settings into the “System Settings” app. Note that some versions only allow you to set IPv6 to “Link-local only” rather than fully “Off.”

The System Settings Method:

  1. Click the Apple Menu > System Settings > Network.
  2. Click on your active service (e.g., Wi-Fi) and click Details….
  3. Select TCP/IP in the sidebar.
  4. Click the Configure IPv6 pop-up menu and choose Link-local only (or Off if available).
  5. Click OK.

The Terminal Method:

  1. Open Terminal.
  2. Run this command to see your network services:

networksetup -listallnetworkservices

  • Use the service name (e.g., “Wi-Fi”) in this command:

sudo networksetup -setv6off Wi-Fi


How to disable IPv6 in Linux

On Linux, the most robust method is using sysctl, which works across Ubuntu, Debian, Fedora, and most other distributions.

How to disable IPv6 in Linux

Temporary (Until Reboot): Open your terminal and run:

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

Permanent Method:

  • Edit the sysctl configuration file:

sudo nano /etc/sysctl.conf

  • Add the following lines to the bottom of the file:

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

  • Save and exit (Ctrl+O, Enter, Ctrl+X), then apply the changes:

sudo sysctl -p

Troubleshooting & 2025 Compatibility Warnings

Before you commit to a purely IPv4 environment, consider these 2025 caveats:

  • Microsoft Support: Microsoft technically discourages disabling IPv6. If you encounter strange “Network Discovery” bugs, re-enable it to see if the issue persists.
  • Mobile Hotspots: Many 5G/6G cellular networks are IPv6-only and use 464XLAT for translation. Disabling IPv6 while tethered to a phone may result in zero connectivity.
  • The “Happy Eyeballs” Algorithm: Modern browsers use RFC 8305 to test both IPv4 and IPv6 simultaneously. If IPv6 is “broken” but enabled, the browser will wait. Disabling it removes this check, often speeding up your web experience.

Final Verdict

Disabling IPv6 is no longer a “set and forget” task. In 2025, it is a diagnostic tool. If you are experiencing VPN leaks or network lag, use the steps above to toggle the protocol. However, as the world moves toward an IPv6-dominant web, ensure you have a plan to migrate back to dual-stack within the next 24 months.

Elsewhere On TurboGeek:  How to SSH to GCP Linux Instance

Richard.Bailey

Richard Bailey, a seasoned tech enthusiast, combines a passion for innovation with a knack for simplifying complex concepts. With over a decade in the industry, he's pioneered transformative solutions, blending creativity with technical prowess. An avid writer, Richard's articles resonate with readers, offering insightful perspectives that bridge the gap between technology and everyday life. His commitment to excellence and tireless pursuit of knowledge continues to inspire and shape the tech landscape.

You may also like...

Leave a Reply

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

Translate »