la commande magique est:

netstat -lpn -A inet

On obtient quelque chose comme:

Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat       PID/Program name   
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN     2689/mysqld         
tcp        0      0 127.0.0.1:10000         0.0.0.0:*               LISTEN     6875/perl           
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     5795/apache2
...