how to kill services running ata aport code example
Example 1: how to stop port 8080
netstat -ano | findstr <Port Number>
Example 2: kill process on port
#list process running on specified port (here 80, change to your port)
sudo lsof -i:80
#kill process on specified port (here 80, change to your port)
sudo kill $(sudo lsof -t -i:80)