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.
in console, run "nvram get wan\_ipaddr"