Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Feb 2004 20:19:07 +0900
From:      Rob <nospam@users.sourceforge.net>
To:        freebsd-questions@freebsd.org
Subject:   How to query the computer's ip address?
Message-ID:  <40261B2B.70603@users.sourceforge.net>

next in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40261B2B.70603>