prefer ipv4, ipv6 causes problems when binding to localhost