You are not logged in.
Pages: 1
I'm sure this is a dumb question ... how can I find out my router's IP address from the shell? The only way I know how to do it now is by logging onto the router through the browser. I have a linksys WRT54GS, if that makes a difference. Thanks for the help.
Offline
A suppose you mean the IP addresses by which you can reach your router from the internet? From inside your lan:
wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1
You can get a dyndns account and let your router automatically update that (most of them can) for an easy to remember hostname.
Offline
Awesome, thank you.
Offline
A simpler way:
$ curl www.whatismyip.org
Offline
Pages: 1