Question: I currently query an external server for my external IP address, but I should really query my own router. It would limit the traffic to the LAN, and the router certainly knows what the address is. Does anybody know if there's a concise way of querying the router (other than screen scraping the status page). Thanks!

Answer: 
I found an acceptable solution. Request page
`http://router_ip/Status_Internet.live.asp`
from your dd\_wrt router (it needs authentication). This output is not dependent on the GUI style, since it is only the auto-refresh data. It's very easy to extract the IP address from the returned data.
Try to install php, if it isn't already installed.  

Make a floder.  

Make a php internal webserver -- the one built in.  

Let it return the ouput from

```
ifconfig |grep "inet addr" |cut -d: -f2 |cut -d" " -f1

```

It will return all the ip addresses it has (internal, external and loopback). You can then poll this instead of the external server.