how to kill all ports code example
Example 1: kill all process at port
lsof -ti tcp:2525 | xargs kill
Example 2: kill port
netstat -aon | findstr 8080
taskkill /f /pid 77777
Example 3: kill port
kill $(lsof -t -i:8080)
lsof -ti tcp:2525 | xargs kill
netstat -aon | findstr 8080
taskkill /f /pid 77777
kill $(lsof -t -i:8080)