Re: dang: how to display the process ass'd with an active port

From: James Wu (admin_at_znode.org)
Date: 02/19/04

  • Next message: Amar Takhar: "Re: Wine"
    Date: Wed, 18 Feb 2004 15:31:59 -0800
    To: freebsd-newbies@freebsd.org
    
    

    > From: "Goodleaf, John M" <jgoodlea@fhcrc.org>
    > Subject: dang: how to display the process ass'd with an active port
    >
    > Under 4.9, how can I tell which process is associated with a port? I've
    > noticed a few oddball ports open on a machine, and I'd like to know which
    > process did that. Seems straightforward and yet I don't know the answer.

    As root, do
    # sockstat -4l

    You should see which processes and ports are listening, such as:
    USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
    garble xpilots 1587 3 udp4 *:15345 *:*
    root sendmail 449 4 tcp4 127.0.0.1:25 *:*
    root sshd 443 3 tcp4 *:22 *:*
    _______________________________________________
    freebsd-newbies@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
    To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"


  • Next message: Amar Takhar: "Re: Wine"

    Relevant Pages