|
||||||||
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|
Hi,
How can I tell what process is runinning on a spesific port? For example when I run netstat -n, it gave me this result: tcp 0 0 210.188.XX.XX:44913 202.4.XX.XX:25 TIME_WAIT I want to know what process is that. Is it possible? Please help. Thank you. --Vito Vito Corleone |
|
#2
|
|||
|
|||
|
"Vito Corleone" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m > How can I tell what process is runinning on a spesific port? For > example when I run netstat -n, it gave me this result: > tcp 0 0 210.188.XX.XX:44913 202.4.XX.XX:25 > TIME_WAIT > > I want to know what process is that. Is it possible? Please help. man netstat Pay attention to the -p option. Pay attention to the man page for any command of interest, please. tony -- use hotmail for email replies |
|
#3
|
|||
|
|||
|
Hi Tony,
> man netstat > > Pay attention to the -p option. Pay attention to the man page for any > command of interest, please. Thank you for your reply. Sorry I should have checked man first. Anyway, I tried -p option, but there was nothing in PID/Program Name column. It looks like: tcp 0 0 210.188.XX.XX:37257 192.76.XX.XX:25 TIME_WAIT - I think this is because the connection is in TIME_WAIT status? Any other way to do this? Thanks. -Vito |
|
#4
|
|||
|
|||
|
"Vito Corleone" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m > Anyway, I tried -p option, but there was nothing in PID/Program Name > column. It looks like: > > tcp 0 0 210.188.XX.XX:37257 192.76.XX.XX:25 > TIME_WAIT - > > I think this is because the connection is in TIME_WAIT status? Any > other way to do this? Thanks. Run the netstat command as root to get process identification. Also use (if installed on the box) as root for more details: lsof -p ` lsof -i :37257 | awk '! /COMMAND/ {print $2}' ` tony -- use hotmail for email replies |
|
#5
|
|||
|
|||
|
"Vito Corleone" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m > tcp 0 0 210.188.XX.XX:44913 202.4.XX.XX:25 > TIME_WAIT > tcp 0 0 210.188.XX.XX:37257 192.76.XX.XX:25 > TIME_WAIT - I failed to mention that since the "Foreign Address" columns of your 2 examples are using port 25, most likely the process that is of concern to you is your local MTA (sendmail, postfix, exim, whatever) connecting as a client to other MTAs. tony -- use hotmail for email replies |
![]() |
| Tags |
| port, process, running |
| Thread Tools | |
| Display Modes | |
|
|