I have a webserver (a router, to be precise, that can be accessed from internal severs, using its internal ip address). The router has an adsl modem connected to it, so it has two interfaces, adsl modem to the internet, and several ports to the internal clients/servers.
Now, I would like one of the internal server to get the ip address of the router's exterenal interface. Are there any c APIs/utilities that can be used to get the external ip address of the router, using the http connection to it through its internal address.
I am using Linux, any pointers would be highly appreciated.
My apology in advance, if this has gone bit OT from C.