Date: Tue, 10 Apr 2007 11:19:50 +0200 From: Benjamin Lutz <mail@maxlor.com> To: freebsd-questions@freebsd.org Cc: Chandhee Thala <cthala@gmail.com>, questions@freebsd.org Subject: Re: finding nat'd IP address? Message-ID: <200704101119.55432.mail@maxlor.com> In-Reply-To: <77647f500704092032v5bb0ea18y3b66ece64b0aa93b@mail.gmail.com> References: <77647f500704092032v5bb0ea18y3b66ece64b0aa93b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704101119.55432.mail>
