diff --git a/openslides/main.py b/openslides/main.py index 2a1ac79bc..b5b9684eb 100644 --- a/openslides/main.py +++ b/openslides/main.py @@ -67,7 +67,10 @@ def main(argv = None): def detect_listen_opts(address, port): if address is None: - address = socket.gethostbyname(socket.gethostname()) + try: + address = socket.gethostbyname(socket.gethostname()) + except socket.error: + address = "127.0.0.1" if port is None: # test if we can use port 80