From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9282 invoked from network); 14 Jun 2004 03:57:59 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 14 Jun 2004 03:57:59 -0000 Received: (qmail 4348 invoked from network); 14 Jun 2004 03:57:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Jun 2004 03:57:52 -0000 Received: (qmail 4618 invoked by alias); 14 Jun 2004 03:57:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7536 Received: (qmail 4608 invoked from network); 14 Jun 2004 03:57:25 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 14 Jun 2004 03:57:22 -0000 Received: (qmail 3410 invoked from network); 14 Jun 2004 03:57:22 -0000 Received: from spoon.dreamhost.com (@66.33.219.19) by a.mx.sunsite.dk with SMTP; 14 Jun 2004 03:57:20 -0000 Received: from [10.0.1.2] (0-1pool217-145.nas11.columbus1.oh.us.da.qwest.net [63.155.217.145]) by spoon.dreamhost.com (Postfix) with ESMTP id 016B613D8BE; Sun, 13 Jun 2004 20:57:13 -0700 (PDT) User-Agent: Microsoft-Entourage/11.0.0.040506 Date: Sun, 13 Jun 2004 23:57:10 -0400 Subject: Re: how do I find my IP address From: Timothy Luoma To: William Scott Cc: Message-ID: In-Reply-To: <67BDB808-BDA2-11D8-9044-000A957D73C4@chemistry.ucsc.edu> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On 6/13/04 9:30 PM, "William Scott" wrote: > If you are running a computer with an ip address that changes > (dynamically allocated), this will work, although it is kind of ugly: > > define an alias such as: > > alias myip="curl -s http://www.showmyip.com/simple/ | awk '{print $1}' > " Ah, no good. This shows my public IP address (the official internet IP given to me by my ISP when I am dialed up). [My apologies for being too vague. I hope I haven't wasted anyone's time] > If you have a static ip address, you should only have to figure this > out once. I'm actually on two private LANs (one home and one work)... home uses 10.x.x.x and work uses 192.168.x.x but they are both given out via DHCP. Right now the ugly hack I have is this: ifconfig en1 | fgrep 'inet ' | awk '{print $2}' which works for the Mac, but it would have to be ifconfig eth0 | fgrep 'inet ' | awk '{print $2}' |\ sed 's/addr://' on Fedora, and possibly even something ELSE for FreeBSD. Obviously less than ideal to have to keep hacking several different ways of doing this, but if that's the only way... > On Mac OS X you can find this in the System Preferences > under file sharing or network settings (I am assuming this on the basis > of the Micro$oft email stamp at the bottom of your email.) Ah yes, sorry about that. I saved about $340USD by waiting for Office:2004 to hit the Microsoft employee store, so I've been using the demo version while waiting. I should have an official copy soon (aside: I've never liked Word or Office but Office:Mac 2004 is quite nice). [no, I'm not an MS employee, but a friend of mine is] Anyway, I'm running zsh on Fedora, FreeBSD, and Mac OSX. (I actually just got my old Dell 7500 setup to dual boot XP/Fedora/FreeBSD today, which is what prompted the question. I'm all of a sudden going to need/want to know several bits of information which I haven't needed to know before. The real challenge is going to be to see if I can write one .zshrc which I can use on all my difference zsh shell accounts by use of conditional statements. > This alias and a whole bunch of stuff that is useful for OS X zsh is > distributed by Gary Kerbaugh. I have links to it and a few of my own > zsh functions here: http://tinyurl.com/3373b Cool, will check it out. Thanks TjL Sent using the Microsoft Entourage 2004 for Mac Test Drive.