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.
All references to IPs I've made are of course internal IPs and I am not talking about internet IPs.