Re: How to query the computer's ip address?

From: Nicholas Holley (nickpub_at_imap.cc)
Date: 02/08/04

  • Next message: Lewis Thompson: "Re: X11 forwarding (with ``screen'' option)?"
    Date: Sun, 08 Feb 2004 06:27:16 -0500
    To: freebsd-questions@freebsd.org
    
    

    Rob wrote:
    >
    > Hi,
    >
    > Silly question, maybe, but is there a simple command to query the
    > computer's
    > ip address? Something similar to 'hostname' for finding the computer's
    > hostname.
    > I need the four dot-separated ip numbers.
    >
    > I can analyze the output of 'ifconfig', but isn't there an easier way.
    >
    > Thanks,
    > Rob.

    If reading the output of ifconfig is really too much trouble for you,
    then I would suggest writing up a small script or alias to grep the
    output of ifconfig.

    Nick
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Lewis Thompson: "Re: X11 forwarding (with ``screen'' option)?"

    Relevant Pages


  • Quantcast