Hi,
simple command is nmap as mentioend below:
Scans all port and list it. It also tries to determine what operating system is running on each host that is up and running.
There are many ways to find the port and maped services. I would suggest you nmap, if you will use this with proper parameter combination it will shows you the list of open ports with programs bind with it alon with program version.
nmap -sS -O -sV <IP/host>
In reverse you can also check the which port is using which pid with the help of fuser command
shows the list of PID used by httpd process.
netstat is also good shows network statastics.
thx