how to find and kill port process in windows code example
Example 1: kill port
lsof -i:8080
Example 2: close all localhost connections
netstat -ano | findstr :yourPortNumber
taskkill /PID typeyourPIDhere /F
lsof -i:8080
netstat -ano | findstr :yourPortNumber
taskkill /PID typeyourPIDhere /F