http://bugs.winehq.org/show_bug.cgi?id=29039
--- Comment #4 from Hans Leidekker hans@meelstraat.net 2011-11-11 13:29:33 CST --- Created attachment 37449 --> http://bugs.winehq.org/attachment.cgi?id=37449 ws2_32: Handle NULL and empty hostname correctly in getaddrinfo.
It turns out that getaddrinfo/GetAddrInfoW treat NULL hostname as "localhost" and an empty hostname as the machine's hostname.
Try this patch.