Date: Fri, 02 Feb 2001 04:48:30 +0800 From: Feisal Umar <afu@webcraft99.com> Cc: freebsd-questions@freebsd.org Subject: Re: netstat questions Message-ID: <3A79CB9E.4CD837FB@webcraft99.com> References: <3A79B98F.AB3E4E95@webcraft99.com> <01020110332401.03031@galaxy.anchoragerescue.org>
next in thread | previous in thread | raw e-mail | index | archive | help
To think I was prepared to be content with a "netstat <option> | grep ^<some stuff> | <somehow merge with ps> | more, etc ... " :) Thanks a bunch Beech Rintoul wrote: > > 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 -- Feisal Umar Webcraft Sdn Bhd - http://www.webcraft99.com Do not drink coffee in early a.m. It will keep you awake until noon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A79CB9E.4CD837FB>