Wait for the port to open