From 3424f1b3e2197801fa3911da515a2bb23d64f790 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Mon, 8 Aug 2022 19:26:19 -0400 Subject: [PATCH] machine: fix IP detection broadcast setting Signed-off-by: Eric Callahan --- moonraker/components/machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/machine.py b/moonraker/components/machine.py index 02194e2..b418c9f 100644 --- a/moonraker/components/machine.py +++ b/moonraker/components/machine.py @@ -439,7 +439,7 @@ class Machine: # than run another shell command src_ip: Optional[str] = None # First attempt: use "broadcast" to find the local IP - addr_info = [("", 0, False), ("10.255.255.255", 1, True)] + addr_info = [("", 0, True), ("10.255.255.255", 1, False)] for (addr, port, bcast) in addr_info: s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM | socket.SOCK_NONBLOCK