macOS by default doesn't allow binding to loopback addresses other than 127.0.0.1, but apparently you can enable them:
https://superuser.com/questions/458875/how-do-you-get-loopback-addresses-other-than-127-0-0-1-to-work-on-os-x
Since we require root already, we could alias the 127.3.2.1 address and use that on macOS (which would also avoid conflicts with other things that put DNS on 127.0.0.1).
macOS by default doesn't allow binding to loopback addresses other than 127.0.0.1, but apparently you can enable them:
https://superuser.com/questions/458875/how-do-you-get-loopback-addresses-other-than-127-0-0-1-to-work-on-os-x
Since we require root already, we could alias the 127.3.2.1 address and use that on macOS (which would also avoid conflicts with other things that put DNS on 127.0.0.1).