https://bugs.winehq.org/show_bug.cgi?id=52521
--- Comment #5 from Eric eric.wheez@gmail.com --- I believe we found the cause of these intermittent TCP connection problems! Unfortunately we think it's a problem with how Linux handles the TIME_WAIT state for open ports, so I believe this isn't a Wine bug after all.
More info here: 1. Linux TCP ports enter a TIME_WAIT state after the last connection on them is terminated. Apparently to prevent DoS attacks & also to prevent packet loss in some edge cases. 2. The state of each TCP port can be viewed with netstat | grep tcp. VARA's localhost:8300/localhost:8301 ports enter ESTABLISHED state when an RMS Express VARA HF P2P session is first opened. Then, as soon as VARA HF is closed, the 8300/8301 ports enter TIME_WAIT state for Linux OS's. I timed how long the ports stay in TIME_WAIT to be about 60 seconds. Then the ports disappear from netstat (they close & can be re-used again). 3. While ports 8300/8301 are in TIME_WAIT, VARA HF will currently not attempt to connect to them. We believe that this is the cause of our issue. Said another way: If VARA is run, then VARA is closed, then VARA is run again, VARA will not re-establish a connection to RMS Express (or any other controller program over TCP) within this 60-second window. https://github.com/WheezyE/Winelink/issues/52#issuecomment-1279390072