/etc/services, port numbers & Unix processes
807559Apr 8 2002 — edited Apr 9 2002I have some questions about /etc/services, ports and unix processes.
First, it appears to me that a process can listen on a port WITHOUT the service/port number being in /etc/services. Is this correct?
For example we have TUXEDO apps that listen on high number ports even though there are no corresponding service/port pairs in /etc/services.
Second, How do you find out which Unix process is listening on a given port?
Forexample, when you run netstat -a and get something that looks like:
host.port.........................LISTEN
How do you get the Unix PID listening on this port?