check all the open port on local machine code example Example: how to check for open ports in windows netstat -an