From owner-freebsd-questions Mon Jan 21 13:31:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailf.telia.com (mailf.telia.com [194.22.194.25]) by hub.freebsd.org (Postfix) with ESMTP id 384E737B400 for ; Mon, 21 Jan 2002 13:31:38 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailf.telia.com (8.11.6/8.11.6) with ESMTP id g0LLVaE13138 for ; Mon, 21 Jan 2002 22:31:36 +0100 (CET) Received: from falcon.midgard.homeip.net (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id WAA20731 for ; Mon, 21 Jan 2002 22:31:31 +0100 (CET) Received: (qmail 30015 invoked by uid 1001); 21 Jan 2002 21:31:29 -0000 Date: Mon, 21 Jan 2002 22:31:29 +0100 From: Erik Trulsson To: Jim McIver Cc: freebsd-questions@freebsd.org Subject: Re: port Message-ID: <20020121213128.GA29992@student.uu.se> Mail-Followup-To: Jim McIver , freebsd-questions@freebsd.org References: <3C4C16CF.18360.13CC36BA@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C4C16CF.18360.13CC36BA@localhost> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jan 21, 2002 at 01:25:32PM +0000, Jim McIver wrote: > How would tell what port a daemon is running on? > > I know that FTP is suppose to use port 21 and 20, but is there a way to > see this? Use sockstat(1) and/or netstat(1) to see what ports are currently in use and by what programs. To see what various ports are normally used for you can look in /etc/services. You might also wish to look in /etc/inetd.conf to see what ports inetd is configured to listen on. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message