*BSD News Article 91701


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.telstra.net!news-out.internetmci.com!newsfeed.internetmci.com!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!howland.erols.net!math.ohio-state.edu!jussieu.fr!eurocontrol.fr!polaris.eurocontrol.fr!not-for-mail
From: roberto@eurocontrol.fr (Ollivier Robert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Which ports are in use ?
Date: 21 Mar 1997 13:43:38 GMT
Organization: Eurocontrol EEC, Bretigny, France
Lines: 20
Message-ID: <5gu3aa$f8l$3@polaris.eurocontrol.fr>
References: <3332269F.41C67EA6@silas.cc.monash.edu.au>
NNTP-Posting-Host: caerdonn.eurocontrol.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsposter: trn 4.0-test56 (2 Mar 97)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37584

    [courtesy cc of this posting sent to cited author via email]

In article <3332269F.41C67EA6@silas.cc.monash.edu.au>,
Chooka  <dhenshaw@silas.cc.monash.edu.au> wrote:
> Can one tell me how I can find which ports are in use ?
> 
> I've tried rpcinfo -p localhost, but it only reports portmap.
> I'd like to get a list of which daemons are using which ports ....

rpcinfo only displays RPC services registered within portmap.

If you want a more general port information (TCP & UDP), use either

netstat -a

or -- better -- get LSOF (from ports/security/lsof I think) and use

-- 
Ollivier ROBERT -=- FreeBSD: there are no limits -=- roberto@eurocontrol.fr
FreeBSD FAQ: <URL:http://www.FreeBSD.org/FAQ/>