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.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With