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 
webserver, eg this one:

#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print $ENV{REMOTE_ADDR};

Cheers
Benjamin

Attachment: pgpPKvJIbRJmZ.pgp
Description: PGP signature

Reply via email to