how to terminate servers on localhost code example Example: stop localhost server netstat -ano | findstr :yourPortNumber tskill typeyourPIDhere