Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is possible to communicate via Bluetooth PAN in iOS with tethered devices

I have a device with which I share my connection from iOS device though Bluetooth (Bluetooth PAN).

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.

Does anyone have this kind of experience? I know it definitely could be done with Android devices.

like image 664
ik1 Avatar asked Apr 04 '15 11:04

ik1


1 Answers

Yes it is possible. For example, see this question about setting up such a server on an iOS device.

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.

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

And in Server Console in the iOS app I got:

enter image description here

like image 159
CupawnTae Avatar answered Nov 05 '22 08:11

CupawnTae