OSX IPv6

Disabling IPv6 on MAC OSX:

networksetup -setv6off Wi-Fi

To enable again:

networksetup -setv6automatic Wi-Fi