check open ports on windows 10 cmd code example Example: how to check for open ports in windows netstat -an