From owner-freebsd-questions@FreeBSD.ORG Sun Feb 8 03:19:11 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 482B516A4CE for ; Sun, 8 Feb 2004 03:19:11 -0800 (PST) Received: from sis1.snu.ac.kr (sis1.snu.ac.kr [147.46.10.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id A99C943D1F for ; Sun, 8 Feb 2004 03:19:10 -0800 (PST) (envelope-from nospam@users.sourceforge.net) Received: from users.sourceforge.net (cisr.snu.ac.kr [147.46.44.181]) by sis1.snu.ac.kr (8.12.10/8.12.10) with ESMTP id i18BFrAn073110 for ; Sun, 8 Feb 2004 20:15:53 +0900 Message-ID: <40261B2B.70603@users.sourceforge.net> Date: Sun, 08 Feb 2004 20:19:07 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040207 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: How to query the computer's ip address? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2004 11:19:11 -0000 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.