check ports open code example Example 1: how to check for open ports in windows netstat -an Example 2: check what ports are open linux ## if you use linux sudo ss -tulw