From owner-freebsd-questions Sun Jun 13 18:29:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from maxcow.borg.com (MaxCow.borg.com [205.217.206.188]) by hub.freebsd.org (Postfix) with ESMTP id 033EF14F43 for ; Sun, 13 Jun 1999 18:29:36 -0700 (PDT) (envelope-from mark@borg.com) Received: from mail.borg.com (mail.borg.com [205.217.206.192]) by maxcow.borg.com (8.9.0/8.8.8) with ESMTP id VAA01517; Sun, 13 Jun 1999 21:29:34 -0400 (EDT) Received: from borg.com (ip212a.borg.com [208.3.180.212]) by mail.borg.com (8.8.7/8.7.3) with ESMTP id VAA01157; Sun, 13 Jun 1999 21:29:33 -0400 (EDT) Message-ID: <37645CC3.98DD6158@borg.com> Date: Sun, 13 Jun 1999 21:37:07 -0400 From: "Mark S. Reichman" X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: "\"Dainel \\\"The Bruce\\\" Keller\"" Cc: questions@FreeBSD.ORG Subject: Re: begginner question: how can i determin my local IP address? References: <016901beb1f5$ad108f00$a33d9bce@g6200> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Put this in your .cshrc or .bashrc or .profile or whatever you use. This is written for .cshrc... Then type "ip" at the prompt. alias ip "ifconfig -a | grep "inet" | grep -v "127.0.0.1" | awk '{print"' Dainel \"The Bruce\" Keller wrote: > > I posted a similar message here last night, but I haven't gotten any > response and I never received the message myself so I'm not sure if it got > through, > Thanks > ----- Original Message ----- > From: Daniel Keller > Newsgroups: comp.unix.bsd.freebsd.misc > Sent: Tuesday, June 08, 1999 1:39 PM > Subject: begginner question: how can i determin my local IP address? > > > Hi, > > I am having some trouble determining my local IP address when I dial into > my > > ISP. I have been getting what I believe is my IP from "netstat -rn", but I > > can not usr this number to telnet, or ftp, or connect to any of the other > > services available on "localhost" or "127.0.0.1". I am not sure if I am > > getting the IP wrong, or if for some reason I cannon connect to myself > > though the IP (perhaps I need to enable some sort of other routing, or > > change my ipfw rules, which are currently set up for natd and are using > > "ipfw add pass all from any to any"). Any help would be greatly > appreciated. > > Thanks, > > Daniel Keller > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message