how to stop port that is running code example
Example 1: how to stop port 8080
netstat -ano | findstr <Port Number>
Example 2: stop port
kill -9 $(sudo lsof -t -i:'portName')
//Ex. if portname is 3000
//then we will execute "kill -9 $(sudo lsof -t -i:3000)"