how to stop localhost server in windows code example Example: stop localhost server netstat -ano | findstr :yourPortNumber tskill typeyourPIDhere