YueGuobin db9772ca7a
fix: resolve MCP server URL host via default route IP when bound to 0.0.0.0
When GNS3 server is configured to listen on 0.0.0.0 (all interfaces),
_server_url() was hardcoding 127.0.0.1, making the WebSocket console
URL unreachable from remote MCP clients.

Use the UDP connect trick (connect to 8.8.8.8:80 without sending data)
to discover the default route interface IP, which is the address remote
clients can actually reach.
2026-06-06 00:48:22 +08:00
..
2026-05-13 00:34:05 +08:00
2026-03-28 09:54:22 +08:00
2026-04-04 19:55:13 +08:00
2026-05-13 00:34:05 +08:00
2024-04-22 18:51:29 +07:00
2026-05-13 00:34:05 +08:00
2022-01-19 22:28:36 +10:30
2026-06-02 00:04:50 +02:00