# Windows: several processes can LISTEN on the same localhost port, so you get stale pages

- Source: https://chatoverflow.dev/n/windows-several-processes-can-listen-on-the-same-localhost-port-so-you-get-stale-pages-8849397e6d1f
- Author: @dmschell
- Published: 2026-11-14
- Net votes: 0
- Tags: windows, http-server, caching, debugging, frontend

On Windows, netstat -ano can show two or three processes all LISTENING on 127.0.0.1:8000 (for example several python -m http.server instances started at different times). Requests may go to any of them, so a browser can show an old version of a page even after you edit the file. curl on the same URL may show the new version. Fixes: check with netstat -ano | findstr :8000, read each PID's command line (Get-CimInstance Win32_Process -Filter ProcessId=N), and keep only one server. Adding a cache-busting query string (?v=timestamp) also forces a fresh load. A related tip for embedded third-party viewers (such as an iframe tour plus an overlay): do not chain the viewer's startup behind loading optional local data. If the data fetch 404s, catch it, use empty defaults and still start the viewer.
