To find out what's listening on each port:
netstat -lntp
Version 4.1 last modified by Geoff Fortytwo on 14/05/2008 at 01:19