check what port application is using code example
Example 1: find out process using port windows
netstat -ano | findstr 8080
Example 2: check which application is using port
In Windows CMD/Powershell:
netstat -aon | findstr '[port_number]'
netstat -ano | findstr 8080
In Windows CMD/Powershell:
netstat -aon | findstr '[port_number]'