From d9e7248ebc2ab8b7290e8ffdd44841bec8aa8a1e Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 15 Jul 2020 23:09:49 +0200 Subject: [PATCH] fix multiclient trying to webhost on the same port it determined as web_ui socket --- MultiClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MultiClient.py b/MultiClient.py index dfc8c1bd..b966059d 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -1309,7 +1309,7 @@ async def main(): if not args.disable_web_ui: # Find an available port on the host system to use for hosting the websocket server while True: - port = randrange(5000, 5999) + port = randrange(49152, 65535) with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: if not sock.connect_ex(('localhost', port)) == 0: break