howto check ports in use windwos code example Example: how to check for open ports in windows netstat -an