问题描述
我有一个设备可以通过蓝牙(蓝牙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应用程序的Server Console中我得到了:
And in Server Console in the iOS app I got:
这篇关于可以通过iOS中的蓝牙PAN与系留设备进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!