how to kill a process running on port 127.0.0.1 code example
Example: close all localhost connections
netstat -ano | findstr :yourPortNumber
taskkill /PID typeyourPIDhere /F
netstat -ano | findstr :yourPortNumber
taskkill /PID typeyourPIDhere /F