How to query the computer's ip address?

Rob nospam at users.sourceforge.net
Sun Feb 8 03:19:11 PST 2004


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.


More information about the freebsd-questions mailing list