stop process on localhost code example
Example 1: close all localhost connections
netstat -ano | findstr :yourPortNumber
taskkill /PID typeyourPIDhere /F
Example 2: stop localhost server
netstat -ano | findstr :yourPortNumber
tskill typeyourPIDhere