Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

port number to application 1

Status
Not open for further replies.

dandan123

Technical User
Sep 9, 2005
505
US
How do you find out what port is being used by what application ?

When I do a netstat -an | grep -i listen I get a list of open ports but I'm unable to figure out what port is being used by what application. I'm not referring to the "well known ports
 
Try using lsof. lsof -i | grep -i listen should get what you're looking for. You may also grep for a pid or port number too if you're looking for something specific.
 
Yes I've tried google but I was unable to find info on a lot of ports, for example -

32778

The well known ports are well documented.
 
Thanks linnorm that was really helpful. I didn't have lsof on the system I was checking but I copied it over from another system.

Are there any issues with having lsof on a box ?
 
Not that I'm aware of, the man page has some information on security if I remember correctly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top