Basically I am trying to automate logging into the routers setup config page, and if I can get the default gateway ip I want to be sure that I will be able to use that ip to login to the routers config page (of course assuming router has config page and I have user/pass etc). I am wanting to know that forth purposes I described it will always work, as I am unsure of the definition of the default gateway ip as compared to the ip of the connected router.
Ps: all references to ips I've made are of course internal ips and I am not talking about internet ips.
Edit: also I am trying to up vote you guys for ur very well articulated answers but it wont let me as I don't have 15 points yet ;/ so pls bare with me...
