http://bugs.winehq.org/show_bug.cgi?id=26031
--- Comment #14 from Bruno Jesus 00cpxxx@gmail.com 2011-10-25 19:00:13 CDT --- After more research I think there is nothing wrong in wine. I found a reliable way to reproduce the bug too: open utorrent and after it start listening you run wineserver -k.
This will leave the port in a unknown state (possibly TIME_WAIT) and the GNU/Linux default timeout for this is 60 seconds. If you reopen utorrent or any other program that tries to bind the same port the OS will refuse saying the address is already in use. If you wait 60 seconds and retry the bind and listen will work.
uTorrent should retry listening from time to time because this may happen in windows too. You can also set the "Randomize port on each start" to get around this. If utorrent used SO_REUSE_ADDR this should have not happened too.
Last thoughts: IMO this is an OS TCP implementation bug that cannot be fixed in wine.
Any thoughts, Artem?