From owner-freebsd-questions Sun Mar 9 19:21:46 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 0F30837B401 for ; Sun, 9 Mar 2003 19:21:45 -0800 (PST) Received: from mail.clubplus.net (mail.clubplus.net [216.191.22.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id F39A743F3F for ; Sun, 9 Mar 2003 19:21:43 -0800 (PST) (envelope-from david@skytrackercanada.com) Received: from skytrackercanada.com (cust29.209.188.66.dsl.accessv.com [209.188.66.29] (may be forged)) by mail.clubplus.net (8.12.7/8.12.7) with ESMTP id h2A3MMui024937; Sun, 9 Mar 2003 22:22:22 -0500 Received: (from root@localhost) by skytrackercanada.com (8.12.6/8.12.6) id h2A3LWMe052669; Sun, 9 Mar 2003 22:21:32 -0500 (EST) (envelope-from david@skytrackercanada.com) Received: from skytrackercanada.com (localhost [127.0.0.1]) by skytrackercanada.com (8.12.6/8.12.6) with ESMTP id h2A3LVAj052643; Sun, 9 Mar 2003 22:21:31 -0500 (EST) (envelope-from david@skytrackercanada.com) Received: (from david@localhost) by skytrackercanada.com (8.12.6/8.12.6/Submit) id h2A3LVWJ052642; Sun, 9 Mar 2003 22:21:31 -0500 (EST) (envelope-from david) Date: Sun, 9 Mar 2003 22:21:31 -0500 From: David Banning To: Daxbert Cc: questions@freebsd.org Subject: Re: identifying my network address Message-ID: <20030309222131.A52536@skytrackercanada.com> References: <1047262824.3e6bf668ac4fd@ra.dweebsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1047262824.3e6bf668ac4fd@ra.dweebsoft.com>; from daxbert_news@dweebsoft.com on Sun, Mar 09, 2003 at 06:20:24PM -0800 X-scanner: scanned by Inflex 1.0.12.3 - (http://pldaniels.com/inflex/) X-RAVMilter-Version: 8.4.2(snapshot 20021217) (mail) 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, Mar 09, 2003 at 06:20:24PM -0800, Daxbert wrote: > Quoting David Banning : > > > 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 > > variable correctly eg: 192.168.1.2:0.0 > > > > Any idea what command would be useful for this purpose? > > How are you connecting to the *nix box? If you're using an SSH client, you > could just enable X11 port forwarding (on both the client and server), and let > SSH handle the DISPLAY variable assignment. Not to mention, your X traffic can > then come back thru any ACLs/FW policies that might otherwise block standard > :60xx X traffic. I am connecting with xwin32. I have a unix window on my winbox, but what I want is the IP address in unix when the window comes up, so I could simply set the variable in .profile with a DISPLAY=$ipaddress:0.0 export DISPLAY I know xwin32 is capable of ssh, but I do not believe I am running it. If it is necessary to run ssh to do it, then it might prove difficult, because whenever I've run ssh it really slows things down and I think that would be poor performance when I need graphics. No? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message