ref:68396971ed0322882653fd41b60636e584731731

test(e2e): serve_desktop.sh tells mirrored from NAT WSL2 networking

Refs #12 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BPNw4PCgkEfhyCjQT19wsb
SHA: 68396971ed0322882653fd41b60636e584731731
Author: Cole Christensen <cole.christensen@gmail.com>
Date: 2026-09-13 11:23
Parents: 26a75f1
1 files changed +12 -3
Type
tests/e2e/qemu/desktop/serve_desktop.sh +12 −3
@@ -96,12 +96,21 @@
EOF
if grep -qi microsoft /proc/version 2>/dev/null; then
if [[ "$(wslinfo --networking-mode 2>/dev/null)" == mirrored ]]; then
cat <<'EOF'
WSL2 mirrored networking: this address is on your LAN. Moonlight may not discover the host over mDNS, so add it
by IP. If Moonlight can't connect, allow inbound connections for WSL in the Hyper-V firewall (PowerShell as admin):
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow
EOF
else
cat <<'EOF'
cat <<'EOF'
WSL2 NAT networking: other devices can't reach this address. Either set networkingMode=mirrored under [wsl2] in
%UserProfile%\.wslconfig and run `wsl --shutdown`, or forward TCP 47984, 47989, 47990, 48010 and
This is WSL2: other devices can't reach it through WSL's default NAT. Either set networkingMode=mirrored under
[wsl2] in %UserProfile%\.wslconfig and run `wsl --shutdown`, or forward TCP 47984, 47989, 47990, 48010 and
UDP 47998-48000, 48002, 48010 from Windows to this WSL address with netsh/New-NetFirewallRule.
EOF
fi
fi
if [[ -n "${SERVE_EXIT_AFTER:-}" ]]; then