close programm by port code example Example: how to stop port 8080 netstat -ano | findstr <Port Number>