From owner-freebsd-questions@FreeBSD.ORG Mon Apr 9 15:46:40 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B9D1716A400 for ; Mon, 9 Apr 2007 15:46:40 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 7B5C613C487 for ; Mon, 9 Apr 2007 15:46:30 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan@localhost [127.0.0.1]) by dan.emsphone.com (8.14.0/8.13.8) with ESMTP id l39FkOAK095587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 9 Apr 2007 10:46:24 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.0/8.14.0/Submit) id l39FkOBe095584; Mon, 9 Apr 2007 10:46:24 -0500 (CDT) (envelope-from dan) Date: Mon, 9 Apr 2007 10:46:24 -0500 From: Dan Nelson To: Siju George Message-ID: <20070409154624.GC93087@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.14 (2007-02-12) Cc: freebsd list Subject: Re: command to inentify the process that is listening in a port. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2007 15:46:40 -0000 In the last episode (Apr 09), Siju George said: > How Do you actually Identify what process is listening on a TCP/IP > port? "nmap" does not usually give the right answer. There should be > some command that can be run on the local host for identification > right? Try /usr/bin/sockstat or lsof (in ports) -- Dan Nelson dnelson@allantgroup.com