how to kill the process on a port code example Example: stop localhost server netstat -ano | findstr :yourPortNumber tskill typeyourPIDhere