Skip to content

Instantly share code, notes, and snippets.

@mestizo
Last active July 22, 2024 20:34
Show Gist options
  • Save mestizo/9167834 to your computer and use it in GitHub Desktop.
Save mestizo/9167834 to your computer and use it in GitHub Desktop.
Completely disable IPv6 on OSX
#To Get List of Hardware
sudo networksetup -listallhardwareports
#To Disable IPv6 on Wifi Adapter
sudo networksetup -setv6off wi-fi
#To Disable IPv6 on Built-in Ethernet Adapter
sudo networksetup -setv6off Ethernet
#To Disable IPv6 on Thunderbolt-base Ethernet Adapter
networksetup -setv6off "Thunderbolt Ethernet"
@ustalo
Copy link

ustalo commented Nov 17, 2018

iPhone usb

sudo networksetup -setv6off "iPhone USB"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment