From owner-freebsd-questions Sun Mar 9 20: 5:36 2003 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 333F037B401 for ; Sun, 9 Mar 2003 20:05:35 -0800 (PST) Received: from priv-edtnes11-hme0.telusplanet.net (outbound03.telus.net [199.185.220.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5434243F93 for ; Sun, 9 Mar 2003 20:05:34 -0800 (PST) (envelope-from viktorlazlo@telus.net) Received: from [192.168.1.100] ([64.180.182.172]) by priv-edtnes11-hme0.telusplanet.net (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with ESMTP id <20030310040533.OMNV20963.priv-edtnes11-hme0.telusplanet.net@[192.168.1.100]>; Sun, 9 Mar 2003 21:05:33 -0700 Date: Sun, 9 Mar 2003 20:05:29 -0800 (PST) From: Viktor Lazlo X-X-Sender: viktorlazlo@a3ij25fvy80j.bc.hsia.telus.net To: David Banning Cc: questions@FreeBSD.ORG Subject: Re: identifying my network address In-Reply-To: <20030309211154.A56130@skytrackercanada.com> Message-ID: <20030309185355.F20073-100000@a3ij25fvy80j.bc.hsia.telus.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 9 Mar 2003, David Banning wrote: > I am running an Xwindow on a windows box. I need a script to > tell me what my network address is so that I can set my DISPLAY > varible correctly eg: 192.168.1.2:0.0 > > Any idea what command would be useful for this purpose? If I understand correctly and you want to identify the IP address the Windows box is using while you are at that computer try entering either of the commands from at a DOS prompt: arp -a | find "Interface" or ipfconfig | find "IP" Cheers, Viktor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message