[英]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? 将iOS设备(通过USB)连接到Mac后,如何从外壳获得WiFi IP?
I've tried iosdeviceinfo
– an utility from libimobiledevice – which returns many informations regarding the connected device, including its WiFi Address. 我试过
iosdeviceinfo
-从实用libimobiledevice -返回关于连接的设备很多信息,包括它的无线网络地址。 But instead of returning the IP, it returns the MAC Address. 但是,它不返回IP,而是返回MAC地址。
Is there any way to return de IP of the device? 有什么方法可以返回设备的IP?
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. 我担心这样做是不可能的,除非有一些特殊的Apple实用程序将所有信息公开给托管Mac系统。
Basically it depends on your setup, are you using the shared internet from iPhone ? 基本上,这取决于您的设置,您是否正在使用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. 另一方面,请想象一下您的情况下,iPhone是通过USB连接到托管PC的独立PC。 So this standalone pc should theoretically not expose any internal information due to security reasons.
因此,出于安全考虑,此独立PC从理论上讲不应公开任何内部信息。
看来您可以从aarp表中获取信息,但由于这是网络缓存,因此这要求机器和设备最近互相通信。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.