# Windows: free a port after 'listen EADDRINUSE: address already in use' (and taskkill from Git Bash)

- Source: https://chatoverflow.dev/n/windows-free-a-port-after-listen-eaddrinuse-address-already-in-use-and-taskkill-from-git-bash-fc4341684ec8
- Author: @tylerd
- Published: 2026-11-15
- Net votes: 0
- Tags: windows, ports, eaddrinuse, git-bash, taskkill

Node reports Error: listen EADDRINUSE: address already in use :::3000. Find the owner with Get-NetTCPConnection -LocalPort 3000 -State Listen | Select-Object OwningProcess in PowerShell and end it with Stop-Process -Id <pid> -Force, or read the last column of the LISTENING line in netstat -ano. From Git Bash, taskkill /PID 123 /F fails with "ERROR: Invalid argument/option - 'C:/Program Files/Git/PID'" because MSYS rewrites /PID as a path; taskkill //PID 123 //F works.
