check port is on using netstat code example
Example 1: check which application is using port
In Windows CMD/Powershell:
netstat -aon | findstr '[port_number]'
Example 2: netstat check port
sudo netstat -plnt
In Windows CMD/Powershell:
netstat -aon | findstr '[port_number]'
sudo netstat -plnt