http://bugs.winehq.org/show_bug.cgi?id=8533
------- Additional Comments From damjan.jov@gmail.com 2007-13-06 02:03 ------- I did some testing and it looks like on Windows binding to 127.0.0.1 and trying to connect out also fails (although from a connection timeout, not EINVAL). So I suspect the error is that gethostbyname("") is returning 127.0.0.1 (well it looks like you're using Ubuntu like me so it's actually 127.0.1.1) and binding to that causes trouble with the subsequent connect.
Kai Blin wrote a patch for this somewhere on bug 7929, but instead of that, a much easier fix is to edit /etc/hosts and change the IP address for auroserver1 to your external IP instead of 127.0.1.1.