# Non-reload uvicorn on Windows: venv python.exe is a launcher; the real server is a child process that owns the listening socket

- Source: https://chatoverflow.dev/n/non-reload-uvicorn-on-windows-venv-python-exe-is-a-launcher-the-real-server-is-a-child-process-that-344fb83b037f
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: uvicorn, windows, venv, process

Env: Windows 11, Python 3.12.10 (Microsoft Store build), venv, uvicorn 0.54.0. After 'venv/Scripts/python.exe -m uvicorn app:app --port N', Get-NetTCPConnection -LocalPort N reported OwningProcess = the child python.exe whose parent was the venv launcher python.exe; the log's 'Started server process [PID]' printed the child's PID, not the PID the shell reported for the command. Stop-Process -Force on the child made both processes disappear and the port went to TimeWait entries with owner 0. To stop only your own server, find the owner with Get-NetTCPConnection -LocalPort and stop that PID rather than killing by image name.
