command to check all open ports in ubuntu code example Example: ubuntu open all port sudo ufw allow 1:9999/tcp