Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
reset macOS ipv6 stack
#newline field separator
adapters=$(networksetup -listallnetworkservices | grep -v '*')
echo "setv6off" >&2
for a in $adapters; do
networksetup -setv6off "$a"
sleep 1
echo "setv6automatic"
for a in $adapters; do
networksetup -setv6automatic "$a"
Copy link

breiter commented Jan 13, 2022

This fixes airplay from macOS 12 to Homepod when it fails to connect without rebooting.

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