From owner-freebsd-questions@FreeBSD.ORG Tue Apr 10 04:13:42 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C376116A401; Tue, 10 Apr 2007 04:13:42 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id A575C13C483; Tue, 10 Apr 2007 04:13:42 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id 8B4576800E233; Mon, 9 Apr 2007 21:14:31 -0700 (PDT) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bO9ul5vRVkdk; Mon, 9 Apr 2007 21:14:31 -0700 (PDT) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id 6F71E6800E21D; Mon, 9 Apr 2007 21:14:31 -0700 (PDT) Date: Mon, 9 Apr 2007 21:14:31 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org, questions@freebsd.org Message-ID: <20070410041431.GA3070@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org, questions@freebsd.org References: <77647f500704092032v5bb0ea18y3b66ece64b0aa93b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <77647f500704092032v5bb0ea18y3b66ece64b0aa93b@mail.gmail.com> User-Agent: Mutt/1.5.11 OpenPKG/2.5 Cc: Subject: Re: finding nat'd IP address? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 04:13:42 -0000 On Mon, Apr 09, 2007, Chandhee Thala wrote: >if i connect to the net with a cable modem or some other device that uses >NAT and gives me a private IP addresses, what is the most "Elegant" way to >get my real IP? (assume that the device itself will not let me have it). > >I can go to some site that gives the visitor their ip address and screen >scrape, but I'd like to know if there is a cleaner solution before I start >scripting. The ``ifconfig'' command will show the information for one or all NICs on the system including the private IP address assigned. Checking on an external site will only show you the public IP address of the box doing NAT. We have a utility to do this: http://www.celestial.com/showinfo_form Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 The Constitution is a written instrument. As such, its meaning does not alter. That which it meant when it was adopted, it means now. -- SOUTH CAROLINA v. US, 199 U.S. 437, 448 (1905)