Possible communication via Bluetooth PAN in iOS with paired devices

I have a device with which I share my connection with an iOS device, although Bluetooth (Bluetooth PAN).

I wonder if it is possible to access the creation of a server on the iPhone in the PAN network and access it from the device or create a server on the device and access it from the iPhone.

Does anyone have such an experience? I know this can definitely be done with Android devices.

+7
ios objective-c swift bluetooth network-programming
source share
1 answer

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 diagnostic application - for example, I found one of them called Console Server from SikYi Chan in the App Store.

In this application, I added β€œserver connection” on port 12345 and started the server. 172.20.10.2 my Mac, in System Preferences β†’ Network, I found that my bound IP address was 172.20.10.2 . I assumed that the iPhone was 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 the server console in the iOS application, I got:

enter image description here

+3
source share

All Articles