Disable IPV6 on macOS
To Disable IPv6 on OS X from command line. It’s very easy, OS X has a command called networksetup.
With this command you can disable IPv6 for a specific device by typing into Terminal.app: networksetup -setv6off Service name
.