On Monday 09 April 2007 17:37, Martin Hudec wrote: > Siju George wrote: > > 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? > > man lsof > > 5:35pm [amber] ~# lsof -i @localhost:123 > COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME > ntpd 552 root 10u IPv4 0xc4c46000 0t0 UDP localhost:ntp
Just out of interest, why do so many people recommend lsof, which is a port, when sockstat/fstat are in the base system and seem to cover the same ground? Am I missing something about lsof? Jonathan _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"