简体   繁体   中英

How to get WiFi IP of connected iOS device from the shell?

With a iOS device connected (through USB) to a Mac, how can I get it WiFi IP from the shell?

I've tried iosdeviceinfo – an utility from libimobiledevice – which returns many informations regarding the connected device, including its WiFi Address. But instead of returning the IP, it returns the MAC Address.

Is there any way to return de IP of the device?

I'm worried that its not possible to do, unless there are some special apple utilities which are exposing all the information to hosting Mac system.

Basically it depends on your setup, are you using the shared internet from iPhone ? Then you might check it somewhere on your "router"s level.

From the other point just imagine in your case the iPhone as a standalone pc connected via USB to your hosting pc. So this standalone pc should theoretically not expose any internal information due to security reasons.

看来您可以从aarp表中获取信息,但由于这是网络缓存,因此这要求机器和设备最近互相通信。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM