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