>>>>> "*" == Ito Kazumitsu <kaz@maczuka.gcd.org> writes: *> It does not throw exception now. But I would like to get *> localhost/127.0.0.1 rather than localhost/::::::::1 . *> *> I do not see why getHostByName returns an IPV6 address. Because getaddrinfo() returns both IPv4 and IPv6 addresses for "localhost" and IPv6 first.