简体   繁体   English

如何从外壳获取已连接的iOS设备的WiFi IP?

[英]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.

相关问题 在iOS中,如何从Javascript(web)检测设备是通过3G还是Wifi连接? - In iOS, how to detect from Javascript (web) the device is connected via 3G or Wifi? 将connectec连接到wifi时获取ios设备的IP地址 - Get IP address of ios device when connectec to wifi 在iOS中连接或断开wifi时如何获取通知? - How to get notified when wifi gets connected or disconnected in iOS? 如何检查本地WiFi网络中的设备是否已使用其IP地址连接? - How to check whether a device in local WiFi network is connected or not using it's IP address? Swift - 获取设备的 WIFI IP 地址 - Swift - Get device's WIFI IP Address 如何在iOS7中以编程方式找到连接3G网络或Wifi的iPhone设备 - How can i find programmatically iPhone device connected 3G network or Wifi in iOS7 如何在设备连接到网络(wifi / 3G)时检查互联网连接,但在使用Swift的iOS中没有互联网访问? - How to check for internet connectivity when device is connected to a network (wifi/3G) but there is no internet access in iOS using Swift? ios 从通过WIFI连接的计算机打印 - ios printing from computer connected via WIFI iOS Xcode Swift - 如何获取热点连接设备的 IP 地址? - iOS Xcode Swift - How to get hotspot connected devices IP address? iOS:在应用程序处于后台时监控连接到Wifi设备的套接字 - iOS: Monitor a Socket Connected to a Wifi Device while app is in Background
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM