Networking Forums

Networking Forums > Computer Networking > Linux Networking > Tell what process is running on port

Reply
Thread Tools Display Modes

Tell what process is running on port

 
 
Vito Corleone
Guest
Posts: n/a

 
      10-08-2004, 04:02 AM
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
 
Reply With Quote
 
 
 
 
ynotssor
Guest
Posts: n/a

 
      10-08-2004, 04:04 AM
"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

 
Reply With Quote
 
Vito Corleone
Guest
Posts: n/a

 
      10-08-2004, 04:56 AM
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
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      10-08-2004, 05:14 AM
"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
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      10-08-2004, 05:28 AM
"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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SVCHOST*32 AppEve running on port 21 with no ftp installed W2k3 x6 Silas Windows Networking 0 05-27-2006 02:00 AM
Can't find process for port andrew.bell.ia@gmail.com Linux Networking 2 02-23-2006 09:23 PM
can't kill the process mia456789@yahoo.com.hk Linux Networking 1 12-16-2004 04:39 AM
Fedora Core 2 NAT Router freezes when left running with Azurus running on a local machine. Lee Caves Linux Networking 0 11-01-2004 08:45 PM
nmap shows port filtered, but iptables/ipchains not running Jeff Krimmel Linux Networking 3 06-27-2004 07:28 PM



1 2 3 4 5 6 7 8 9 10 11