when no port specified in server, chose one at random but only the first time; this way we can just alt+tab to the client to connect after every relaunch