Re: Port-Numbers

Bob Lanning (lanning@tidbit.fhda.edu)
Wed, 15 Jan 1997 23:58:17 -0800 (PST)


---- As written by mab@hamburg.GermanLloyd.de:
>
> Hi *,
>
> I know this is a little bit offtopic, but I don't have anyone else to ask!
>
> How can I get the PID of a process waiting for a connection on a
> specific port-number? I can see with 'netstat -a' that there is
> _someone_ sitting on it, but I can not see _who_!
>
> Thanks for any help!
>
> Martin
> -----------------------------------------------------------------------------
> Martin Bauer <mab@hamburg.germanlloyd.de>
>
> Germanischer Lloyd AG, Vorsetzen 32, 20456 Hamburg, Germany
> phone/fax: +49-40-36149-564/721
> -----------------------------------------------------------------------------

Look for the pident source. It contains a utility that it's kernel interface.
This utility will list all open connections and their owners.

-- 
Robert Hajime Lanning                                     "It's the FROSTING!"
     The opinions expressed here are not mine, nor are they anyone else's.
lanning@tidbit.fhda.edu <--for fun     &&     for profit--> lanning@navtech.com