可以通过 iOS 中的蓝牙 PAN 与系留设备进行通信 [英] Is possible to communicate via Bluetooth PAN in iOS with tethered devices
问题描述
我有一台设备,我通过蓝牙(蓝牙 PAN)与 iOS 设备共享我的连接.
I have a device with which I share my connection from iOS device though Bluetooth (Bluetooth PAN).
我想知道是否可以在 PAN 网络中的 iPhone 上创建服务器并从设备访问它或在设备上创建服务器并从 iPhone 访问它.
I wonder is it possible to access to create a server on iPhone in PAN network and access it from device or create a server on device and access it from iPhone.
有人有这种经历吗?我知道这绝对可以在 Android 设备上完成.
Does anyone have this kind of experience? I know it definitely could be done with Android devices.
推荐答案
是的,这是可能的.例如,请参阅关于在 iOS 设备上设置此类服务器的这个问题.
Yes it is possible. For example, see this question about setting up such a server on an iOS device.
您可以通过安装网络诊断应用程序来进行非常快速的测试 - 例如我在 App Store 上找到了一个叫 SikYi Chan 的 Console Server.
You can do a very quick test by installing a network diagnostics app - e.g. I found one called Console Server by SikYi Chan on the App Store.
在这个应用程序中,我在端口 12345
上添加了一个服务器连接"并启动了服务器.从我的 Mac 进行网络共享,在系统偏好设置 -> 网络中,我发现我的网络共享 IP 地址是 172.20.10.2
.我猜 iPhone 因此在 172.20.10.1
上,然后这样做:
In this app, I added a "server connection" on port 12345
and started the server. Tethering from my Mac, in System Preferences -> Network I found that my tethered IP address was 172.20.10.2
. I guessed the iPhone was therefore on 172.20.10.1
, and did this:
% telnet 172.20.10.1 12345
Trying 172.20.10.1...
Connected to 172.20.10.1.
Escape character is '^]'.
hello
在 iOS 应用程序的服务器控制台中,我得到了:
And in Server Console in the iOS app I got:
这篇关于可以通过 iOS 中的蓝牙 PAN 与系留设备进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!