search by netstat by port code example
Example 1: netstat find port
netstat -na | find "8080"
Example 2: search by netstat by port
sudo netstat -nap | grep :80
or
sudo lsof -i:80
netstat -na | find "8080"
sudo netstat -nap | grep :80
or
sudo lsof -i:80