List open ports Long version netstat --tcp --listening --programs --numeric Short version netstat -tlpn