Skip to content

Instantly share code, notes, and snippets.

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

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