show which process is using a port code example
Example 1: list process using port
sudo lsof -n -i :80 | grep LISTEN
Example 2: find out process using port windows
netstat -ano | findstr 8080
sudo lsof -n -i :80 | grep LISTEN
netstat -ano | findstr 8080