list open ports

$ sudo ss -tulpn

(mostly comes installed)

$ sudo netstat -tulpn

(needs net-tools)