From owner-freebsd-questions Thu Feb 1 11:33:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nebula.anchoragerescue.org (cable-115-7-237-24.anchorageak.net [24.237.7.115]) by hub.freebsd.org (Postfix) with ESMTP id E5FAB37B4EC for ; Thu, 1 Feb 2001 11:33:25 -0800 (PST) Received: from galaxy.anchoragerescue.org (galaxy.anchoragerescue.org [24.237.7.95]) by nebula.anchoragerescue.org (Postfix) with SMTP id C18CC165; Thu, 1 Feb 2001 10:33:32 -0900 (AKST) From: Beech Rintoul Organization: Anchorage Gospel Rescue Mission To: aeefyu@webcraft99.com, Feisal Umar , freebsd-questions@freebsd.org Subject: Re: netstat questions Date: Thu, 1 Feb 2001 10:33:24 -0900 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" References: <3A79B98F.AB3E4E95@webcraft99.com> In-Reply-To: <3A79B98F.AB3E4E95@webcraft99.com> MIME-Version: 1.0 Message-Id: <01020110332401.03031@galaxy.anchoragerescue.org> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday 01 February 2001 10:31, Feisal Umar wrote: > Hi, > the following is an excerpt of "netstat -a" on my FreeBSD-4.2 box. How > do I find out what/which program is "listening" on what ports from the > outputs of netstat. (Basically I'm interested to figure out what is > listening on port udp:20089 below). But would be useful for other > purposes next time, I suppose > > udp4 0 0 *.3130 *.* > udp4 0 0 *.20089 *.* > udp4 0 0 *.domain *.* > udp4 0 0 localhost.domain *.* > > Unless I'm mistaken, in Linux, the command was "netstat -arn" ( I don't > have a Linux box on hand now to verify, but it would show netstat > outputs with a colum matching the listening process/daemon). Any such > thing or equivalents on FreeBSD? > > Thank you in advance. I believe what you are looking for is the command "sockstat" type man sockstat for an overview. Beech To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message