Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2002 08:32:50 +1100
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Jim McIver <jmciver@lmtribune.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: port
Message-ID:  <20020122083250.G823@k7.mavetju.org>
In-Reply-To: <3C4C16CF.18360.13CC36BA@localhost>; from jmciver@lmtribune.com on Mon, Jan 21, 2002 at 01:25:32PM %2B0000
References:  <3C4C16CF.18360.13CC36BA@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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?

You can...

1. Read the RFC about FTP, it explains which well-known ports are used for it.
2. Check /etc/services, which has an entry for ftp and ftp-data
3. Check /etc/inetd.conf, which has an entry for ftp in it, together with 2.
4. Run lsof or sockstat, which tells which processes are using which ports.

Edwin

-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

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?20020122083250.G823>