For pure convenience use 127.0.0.1 in MacOS since localhost will return both ipv4 and 6 addresses and cause an address family error