From owner-freebsd-questions@FreeBSD.ORG Tue Apr 10 09:20:17 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 2D9B216A586 for ; Tue, 10 Apr 2007 09:20:17 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from popeye1.ggamaur.net (popeye1.ggamaur.net [213.160.40.50]) by mx1.freebsd.org (Postfix) with ESMTP id 9B9CB13C44C for ; Tue, 10 Apr 2007 09:20:16 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from maxlor.mine.nu (maxlor@c-82-192-240-247.customer.ggaweb.ch [82.192.240.247]) by popeye1.ggamaur.net (8.13.7/8.13.7/Submit) with ESMTP id l3A9KDQQ047137; Tue, 10 Apr 2007 11:20:14 +0200 (CEST) (envelope-from mail@maxlor.com) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id F0F4F2E19C; Tue, 10 Apr 2007 11:20:12 +0200 (CEST) X-Virus-Scanned: amavisd-new at atlantis.intranet Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12Zjixkg5QqM; Tue, 10 Apr 2007 11:19:56 +0200 (CEST) Received: from mini.intranet (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id 14A312E1D8; Tue, 10 Apr 2007 11:19:56 +0200 (CEST) From: Benjamin Lutz To: freebsd-questions@freebsd.org Date: Tue, 10 Apr 2007 11:19:50 +0200 User-Agent: KMail/1.9.5 References: <77647f500704092032v5bb0ea18y3b66ece64b0aa93b@mail.gmail.com> In-Reply-To: <77647f500704092032v5bb0ea18y3b66ece64b0aa93b@mail.gmail.com> X-Face: $Ov27?7*N,h60fIEfNJdb!m,@#4T/d; 1hw|W0zvsHM(a$Yn6BYQ0^SEEXvi8>D`|V*F"=?utf-8?q?=5F+=0A=09R2?=@Aq>+mNb4`,'[[%z9v0Fa~]AD1}xQO3|>b.z&}l#R-_(P`?@Mz"kS; XC>Eti,i3>%@=?utf-8?q?g=3F=0A=094f?=,\c7|Ghwb&ky$b2PJ^\0b83NkLsFKv|smL/cI4UD%Tu8alAD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart10698290.0j5gM1W2tc"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200704101119.55432.mail@maxlor.com> X-Scanned-By: MIMEDefang 2.61 on 213.160.40.60 Cc: Chandhee Thala , questions@freebsd.org Subject: Re: finding nat'd IP address? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 09:20:17 -0000 --nextPart10698290.0j5gM1W2tc Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 10 April 2007 05:32, 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. Nope, that's the way to go. I'd deposite some very small cgi-bin on some=20 webserver, eg this one: #!/usr/bin/perl print "Content-type: text/plain\n\n"; print $ENV{REMOTE_ADDR}; Cheers Benjamin --nextPart10698290.0j5gM1W2tc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGG1a7zZEjpyKHuQwRAjShAJ9Gy12+BGsIxQ/xScQNJK8KxlRMSwCfQfN5 7oTKybs4YcN6DddR+AoFHJ0= =bOHA -----END PGP SIGNATURE----- --nextPart10698290.0j5gM1W2tc--