From 50d2df9c9826285456376717e297ff9ba899b332 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 20 Apr 2026 09:11:07 +1000 Subject: [PATCH] fix: bind to 0.0.0.0 for LAN mode instead of specific IP view_settings.py: - _write_server_config now always writes address = 0.0.0.0 for LAN mode - Specific detected IP is display-only, not written to config.toml - Fixes WinError 10049 when config.toml is shared across machines with different LAN IPs via git pull --- view_settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/view_settings.py b/view_settings.py index 74f8860..0007098 100644 --- a/view_settings.py +++ b/view_settings.py @@ -525,8 +525,9 @@ changes — then bookmark the IP address URL. if access_mode == "Localhost only": _write_server_config("127.0.0.1", int(port)) else: - addr = lan_ip if lan_ip else "192.168.1.1" - _write_server_config(addr, int(port)) + # Always bind to 0.0.0.0 so the config works on any machine + # regardless of its specific LAN IP + _write_server_config("0.0.0.0", int(port)) st.success("Saved to config.toml — restart the app for changes to take effect.") # ── Version & Changelog ───────────────────────────────────────────────────