HACKER Q&A
📣 gh-automata

What's your workflow for fixing "port in use" on Windows?


I keep running into this when developing locally:

Error: listen EADDRINUSE

My current workflow is: netstat → find PID → taskkill

It works, but it feels clunky and breaks flow.

Curious what others are doing here — is there a better approach or tool people are using?


  👤 ricktdotorg Accepted Answer ✓
powershell:

Stop-Process -Id (Get-NetTCPConnection -LocalPort 1234).OwningProcess -Force