From 887da8734034c036c0ae08e25323c96baa4e478a Mon Sep 17 00:00:00 2001 From: Guofang Date: Thu, 29 Oct 2026 11:28:56 +0800 Subject: [PATCH] Show the RDP and SSH forwards as listening on 0.0.0.0 Co-Authored-By: Claude Sonnet 5.5 --- README.md | 2 +- run-windows11.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 164f085..4637c22 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ from the shared Windows 11 QCOW2 base image: It creates a persistent 64G disk at `vm/windows11/disk.qcow2`, automatically partitions it, completes OOBE, creates the local administrator `guofang` with the initial password `wang`, and enables Remote Desktop on -`localhost:3389`. During the first login it also silently installs the VirtIO +`0.0.0.0:3389` (all host interfaces; connect to `localhost:3389` on the host itself). During the first login it also silently installs the VirtIO drivers (the guest tools installer on amd64, the Arm64 driver packages from the VirtIO ISO with `pnputil` on arm64), without which the guest has no network on arm64. The installer includes the VirtIO drivers, SPICE vdagent, and QEMU Guest diff --git a/run-windows11.py b/run-windows11.py index e7b40f5..7daabd1 100755 --- a/run-windows11.py +++ b/run-windows11.py @@ -491,7 +491,7 @@ elif installing: else: print("Starting Windows 11 normally.") print("Account: guofang / password; " + "; ".join( - f"{label}: localhost:{port}" for label, port, forwarded in forwarded_ports if forwarded), + f"{label}: 0.0.0.0:{port}" for label, port, forwarded in forwarded_ports if forwarded), flush=True) if daemonize: