You can get a decent snapshot summary of open ports with
This will show the names of the programs using the ports, as well as the users and PIDs. Some port numbers will be displayed in name format, and you can refer to
/etc/services to look up their numeric values, if that is more useful.
--- rod.