check if a particular port is open windows code example
Example 1: how to check for open ports in windows
netstat -an
Example 2: check which application is using port
In Windows CMD/Powershell:
netstat -aon | findstr '[port_number]'
netstat -an
In Windows CMD/Powershell:
netstat -aon | findstr '[port_number]'