diff --git a/gns3server/run.py b/gns3server/run.py index 0dcd83d9e..65f8d070e 100644 --- a/gns3server/run.py +++ b/gns3server/run.py @@ -213,8 +213,8 @@ def set_vmware_gns3vm_ip(): if not vmtoolsd: return try: - ip = psutil.net_if_addrs()["eth0"].address - except KeyError: + ip = psutil.net_if_addrs()["eth0"][0].address + except (KeyError, IndexError): return subprocess.run(["vmtoolsd", "--cmd", "info-set guestinfo.gns3.eth0 {}".format(ip)])