|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Find process associate with a Open Port
Hello to all,
As you all know, netstat -an list down all open port but how to find out the open port associate with what process? Thanks. |
|
|||
Lets say you have a process with pid 18487 like me
Code:
18487 ?? I< 0:00.24 ntpd: ntp engine (ntpd) Code:
$ fstat -p 18487 Code:
$ fstat | grep [port number] |
|
|||
Thanks. The last command is what i looking for. Problem solved. Close thread.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PhotoRec process bug | LeFrettchen | General software and network | 4 | 1st July 2014 11:15 PM |
Help please open port 8005 pf rule set | whispersGhost | OpenBSD Security | 6 | 16th April 2012 11:07 PM |
namp show me a 1720 open port ?? | killa74 | OpenBSD Security | 11 | 11th February 2009 02:55 PM |
PF wont open port despite rules... | Dain_L | OpenBSD Security | 3 | 12th September 2008 01:14 AM |
How to open port 80 on FreeBSD | kapom | FreeBSD General | 14 | 19th June 2008 04:48 AM |