correctly connect to server started by-hand