iPad: How to get Ethernet IP address programmatically

Viewed 5487

I know how to get the IP address, via en0 interface, seen here: iPhone/iPad/OSX: How to get my IP address programmatically?

But now I'm implementing an ethernet connection to the LAN using the Lightning to USB 3 Camera Adapter in order to connect to the internet without Wifi in 9.3, so the above solution can't resolve the IP address without the wireless connection. The iPad is on the internet fine, now it's just important the app can resolve the device's own IP address.

How can I get the iPad's IP address through a Lightning->USB->Ethernet connection? As opposed to wirelessly.
Thanks in advance!

2 Answers
Related