Home » Infrastructure » Unix » Unix port information
Unix port information [message #242258] Fri, 01 June 2007 06:44 Go to next message
Messages: 11
Registered: February 2007
Location: ireland
Junior Member


Any way to know in unix which application is using a port?

if I do netstat | grep portnumber I do not get much info, only that the port is in use by the server, that all.I want to know which application is using that port.
Re: Unix port information [message #242282 is a reply to message #242258] Fri, 01 June 2007 08:19 Go to previous message
Messages: 961
Registered: August 2006
Location: Stockholm/Sweden
Senior Member

lsof -iTCP:portnum | grep LIST

lsof -iUDP:portnum | grep LIST

if that command doesnt work

pfiles /proc/* | egrep '^[1-9]|port'

That should give you all processes and their ports
Previous Topic: please help
Next Topic: Creating file using UNIX K-Shell Scripts.
Goto Forum:

Current Time: Fri Oct 28 00:02:10 CDT 2016

Total time taken to generate the page: 0.23401 seconds