You're viewing a comment by realbrew and its responses.

realbrew Permalink
February 20, 2009, 03:17

It's a little tougher to get a WAN address from a router. Here's the best I could do:

traceroute -m 1 -N 1 1.2|grep ms|perl -nle'/\((\S+)/&&print$1'|tr -d \)

Note the fake ip address "1.2" as argument to traceroute.
On another distro, one could leave out the -N 1 option to traceroute, but it's broken in Ubuntu Intrepid and won't do fewer than 6 hops without -N 1.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "browser_90": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.