Link to home
Start Free TrialLog in
Avatar of nngdemi
nngdemi

asked on

find what port a program runs

I did a ps -ef|grep web and
saw a web daemon running but
did not know what port it runs.
netstat -a show all the ports
associate with the process.

Is there an easy way to find out
what port is the process/program
use?
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bewtain
bewtain

i think you misunderstood the question :)
. probably ;-)
If I want to know the port the web daemon is (means "should" as defined in  its config files) running on, I also could have checked the config files.
But the last question sound more than a general one: which  program uses which port