From b53b34d485a66874a4d330f2e69ab04e0797498b Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 18 Oct 2016 09:57:32 +0200 Subject: [PATCH] When checking for a free port check if the host and 0.0.0.0 are available Because some emulators will listen on 0.0.0.0 and not on the host. Fix #721 --- gns3server/modules/port_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/modules/port_manager.py b/gns3server/modules/port_manager.py index bcaa74af..c65ed35c 100644 --- a/gns3server/modules/port_manager.py +++ b/gns3server/modules/port_manager.py @@ -153,6 +153,8 @@ class PortManager: try: PortManager._check_port(host, port, socket_type) + if host != "0.0.0.0": + PortManager._check_port("0.0.0.0", port, socket_type) return port except OSError as e: last_exception = e