Date: Tue, 23 May 2000 19:35:34 -0400 From: Alan Clegg <abc@firehouse.net> To: David Kirchner <dpk@nwserv.com> Cc: Oscar Ricardo Silva <oscars@mail.utexas.edu>, freebsd-questions@FreeBSD.ORG Subject: Re: Port 722 ? Message-ID: <20000523193534.A57347@ecto.greenpeas.org> In-Reply-To: <Pine.BSF.4.21.0005231624110.29966-100000@web2.sea.nwserv.com>; from dpk@nwserv.com on Tue, May 23, 2000 at 04:27:00PM -0700 References: <4.2.2.20000523180523.00a8f680@mail.utexas.edu> <Pine.BSF.4.21.0005231624110.29966-100000@web2.sea.nwserv.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Out of the ether, David Kirchner spewed forth the following bitstream: > An easy way to find out what an unknown port is: > > First run 'netstat -aAn | grep LISTEN | grep \.portnum'. The -A flag will > display the address for the socket. You can then figure out which process > is using that address by running 'fstat | grep address': > > dpk@web2:/home/dpk$ netstat -aAn | grep LISTEN | grep \.25 > c6400180 tcp 0 0 *.25 *.* LISTEN > dpk@web2:/home/dpk$ fstat | grep c6400180 > root sendmail 94903 4* internet stream tcp c6400180 Easier way: lsof -i TCP:_portnum_ ecto 101} /usr/local/sbin/lsof -i TCP:25 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME tcpserver 381 qmaild 3u IPv4 0xc735c500 0t0 TCP *:smtp (LISTEN) lsof from ports, btw... AlanC -- \ Alan B. Clegg Just because I can \ abc@firehouse.net does not mean I will. \ <http://www.firehouse.net/> \ 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?20000523193534.A57347>