Unix port information [message #242258] |
Fri, 01 June 2007 06:44 |
libanori
Messages: 11 Registered: February 2007 Location: ireland
|
Junior Member |
|
|
Hi
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.
thanks.
|
|
|
Re: Unix port information [message #242282 is a reply to message #242258] |
Fri, 01 June 2007 08:19 |
tahpush
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
Try
pfiles /proc/* | egrep '^[1-9]|port'
That should give you all processes and their ports
|
|
|