How to see what is posting to a port using cmd code example Example 1: ubuntu check process on port sudo lsof -i:22 Example 2: how to check the ports in use in windows cmd netstat -aon