how to check if a port is opened code example Example: check which application is using port In Windows CMD/Powershell: netstat -aon | findstr '[port_number]'