Wait for the server to complete listen