[YLUG] Finding the external IP of a linksys router
Stephen
steve at patter.mine.nu
Mon May 22 19:22:24 BST 2006
On 22 May 06, Craig Genner (craig at gennerfam.freeserve.co.uk) wrote:
> curr_ip=`wget -q -O- http://www.whatismyip.com/ | grep "Your IP is " - | cut
> -d" " -f4`
Thats neater than my first thought (at least the html is) - load the router's
status webpage which has its external IP & grep through that.
I'll post the actual script when I've got something figured out.
hmmm, looks like gpg's gone snafu :(
--
Stephen Patterson :: steve at patter.mine.nu :: http://patter.mine.nu/
GPG: E3E8E974 :: Jabber: patter at jabber.earth.li
"At night, the razor weasels come."
More information about the York
mailing list