improved speed & stability when launching a local server. The connection
process will now loop until it manages to connect to the server.