[prev in list] [next in list] [prev in thread] [next in thread] 

List:       debian-user
Subject:    Re: knowing my IP address behind NAT firewall
From:       Lee Braiden <jel () tundra ! ath ! cx>
Date:       2005-05-31 22:55:44
Message-ID: 200505312355.44757.jel () tundra ! ath ! cx
[Download RAW message or body]

On Tuesday 31 May 2005 23:48, Roberto C. Sanchez wrote:
> On Tue, May 31, 2005 at 11:25:10PM +0100, Lee Braiden wrote:
> > ping -c 1 hop www.google.com | grep 'bytes from' | cut -d ' ' -f 5 | cut
> > -d '(' -f 2 | cut -d ')' -f 1
>
> Try this:
> lynx -dump http://checkip.dyndns.org |sed -n '/Current/s/.*: \(.*\)/\1/p'
>
> It doesn't rely on ICMP packaets, which are blocked by many ISPs and/or
> network admins.

I guess the hop thing is unreliable, then?

p.s.: Dexter, you might be able to use Roberto's example to parse the output 
of the webserver built into your router.  That would be awkward on my router, 
but I've heard of other people doing that.  Not sure if it was easy on 
theirs, or if they just liked hard work ;)

-- 
Lee.

Please do not CC replies directly to me.  I'll read them on the list.


-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic