GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug]: Server fails to bind on Windows 11 when HNS/Hyper-V invisibly reserves port 45456/45457 — error is swallowed, UI shows only "Failed to fetch" · Issue #901 · httptoolkit/httptoolkit Closed Labels bugSomething isn't working DescriptionHas this been reported before?
Repro stepsSummaryOn Windows 11 with Hyper-V components active (WSL2, Docker Desktop, Windows Sandbox, or just Hyper-V itself), the Host Network Service can invisibly reserve TCP ports 45456 and/or 45457. When this happens, HTTP Toolkit's server process silently fails to bind, the desktop log reports a successful startup, and the UI shows repeated Related issuesThis appears to be the Windows 11 / Hyper-V variant of a broader "server can't bind, UI shows 'Failed to fetch' with no actionable error" family:
A single fix — catch and surface bind errors with platform-specific hints, plus dynamic port fallback — would close all of these. Environment
SymptomsDesktop log ( But:
& 'C:\Program Files\HTTP Toolkit\resources\httptoolkit-server\bin\node.exe' -e "require('http').createServer().listen(45456,'127.0.0.1',()=>{}).on('error',e=>console.error(e))" # Error: listen EADDRINUSE: address already in use 127.0.0.1:45456
So the OS reports the port as held, but nothing visible holds it. This is the known signature of Windows HNS / Hyper-V port reservations, which don't surface in any standard diagnostic tool. Root causeWindows 11's Host Network Service reserves TCP port ranges at boot for vEthernet/WSL2/Docker port forwarding. The ranges are picked semi-randomly and are not reported by Workaround (for affected users)Elevated PowerShell: Stop-Service hns -Force -ErrorAction SilentlyContinue Stop-Service winnat -Force -ErrorAction SilentlyContinue Stop-Service vmcompute -Force -ErrorAction SilentlyContinue Start-Service vmcompute -ErrorAction SilentlyContinue Start-Service hns -ErrorAction SilentlyContinue Start-Service winnat …or reboot. Either re-rolls HNS's reservations, after which HTTP Toolkit boots normally. Permanent immunization: netsh int ipv4 add excludedportrange protocol=tcp startport=45456 numberofports=2 store=persistent Suggested fixes
Reproduction (probabilistic)Cannot be reproduced on demand — the bug fires only when HNS happens to reserve 45456/45457 at boot. On the affected machine it took ~2 days of normal Windows 11 use before HNS shuffled into a layout that overlapped, after which the problem was 100% reproducible across reboots until the workaround was applied. How often does this bug happen?Every time The desktop OS you're usingWindows 11 Details of other apps/devicesNo response Error screenshotNo response Any other info?No response Activity
MetadataMetadataAssigneesLabelsbugSomething isn't working TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |