how to know which port of system is open in windows 10 code example Example: how to check for open ports in windows netstat -an