Re: how to determine WAN IP address from behind a NAT router?
Roberto C. Sanchez <firstname.lastname@example.org> wrote:
| A.Melon wrote:
| > I have connected a Debian box attached to a NAT router to a cable
| > modem, and I'd like to determine (preferably from Perl but
| > anything will do!) my "internet" IP address (as opposed to
| > 192.168...).
| > I searched for information on this and found only solutions by
| > parsing the output of websites that display the HTTP REMOTE_ADDR.
| > But I don't want to rely on an external website.
| > I know there must be a way to do this because Gnutella-type
| > programs (client) display my "outside" IP address. How do they
| > do it?
| $ lynx -dump checkip.dyndns.org
| Pipe through grep/sed/whatever to suit your tastes as to specific format.
On my debian-router, when connecting to internet, the dynamic IP is displayed.
I've touch'd the highest point of all my greatness;
And from that full meridian of my glory
I haste now to my setting. I shall fall,
Like a bright exhalation in the evening
And no man see me more.