windows stop port listening code example
Example 1: remove port binding windows
netstat -a -n -o | findstr :80
TaskKill /PID pidnum
Example 2: how to shutdown port in windows
netstat -ano | findstr < Port Number >
taskkill /F /PID < Process Id >
Example 3: stop task on port
npx kill-port 8080