finding nat'd IP address?

Benjamin Lutz mail at
Tue Apr 10 09:44:23 UTC 2007

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:

print "Content-type: text/plain\n\n";

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list