NGSocketAddressFromString answers the first family returned by getaddrinfo, and resolvers on dual-stack hosts may answer ::1 before 127.0.0.1 for localhost, so the IPv4 expectation for that name cannot be guaranteed on every host.