whats_using_a_given_port

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: What's using port 1026 ?  NEVER MIND - GOT IT
From: sopwith@redhat.com (Elliot Lee)
Date: 6 Apr 2000 23:09:03 GMT

On 6 Apr 2000 17:58:11 -0400, Steve Feehan <steve@cis.ksu.edu> wrote:
>On Thu, 6 Apr 2000, Brian wrote:
>
>> On Thu, 6 Apr 2000, Perry J. Blalock wrote:
>> 
>> > Hello,
>> > 
>> > I have something that appeared and is listening on port 1026, but I
>> > don't know what it might be.  Is there any way to determine what
>> > binary is using this port?
>> 
>> lsof should be able to tell you that.
>> 
>
>or if lsof isn't installed you can do:
>
> $ netstat -anp | grep LISTEN
>
>and that will show you list of all ports in the LISTEN state along with
>the process associated with the port.

Easiest way so far:

	fuser -uv 1026/tcp

(You may need to specify the full path to fuser, if you don't keep the
sbin dirs on your $PATH.)
-- Elliot
"Moron of the week" for four years running


===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu