I need to find the Wi-Fi's router address from my iOS app. I searched the web for a solution but nothing seems to do it. I need something that is not using private APIs an is not against Apple policies.
I have tried solutions found in the following articles and none of them actually give me the router IP address.
How can I determine the default gateway on iPhone?
Fetching IP address of router to which iPhone is connected
Objective-C : How to fetch the router address?
How to get the WIFI gateway address on the iPhone?
There also could be a way to "calculate" the IP from the mask and device IP (or maybe my TCP/IP course is waaaaay to far back in time)...
Thanks!