Ask HN: What's your workflow for fixing "port in use" on Windows?
2 points
2 hours ago
| 1 comment
| HN
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
1 hour ago
[-]
powershell:

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

reply