My name is akshay punwatkar, i m working as iOS developer. Currently i m working on cross platform connectivity using wifi and bluetooth application.It mean we create local server in one ios device and other devices are access to this server And Using ios document regarding multipeer chat for below documents currently we achieve the things in same platform (iOS to iOS) I check iOS documents But i don,t get any working solution for cross platform connection and communication. in fact in iOS documents did not mention about cross platform connectivity so please guide me how to achieve this things. https://developer.apple.com/documentation/multipeerconnectivity
Cross Platform Communication using local server
There are a few things I want to address here from the Wi-Fi side of things; first, there is nothing stopping you from exposing a listener on one iOS device and handing out your IP and port to other iOS devices to connect to over the same network. This can work. There are many pitfalls with doing this though. Most notably are IP and Port changes that just render your connections useless.
| It mean we create local server in one ios device and other devices are access to this
| server And Using ios document regarding multipeer chat for below documents
Second, if you truly need a multi-client to server type messaging system on a local Wi-Fi network between multiple iOS devices you have Network Framework at your disposal. You can use NWListener to advertise a Bonjour service on the iOS device designated as the server. Then on your browsing iOS clients you can use NWBrowser to browse and connect to this service. From here, you can build your logic to communicate with other clients / server as needed. For an example of how to setup Bonjour communication like this with Network Framework, see this post. The benefit here, is that this can be done over a local Wi-Fi network and any platform that can support Bonjour service discovery and endpoint connections could theoretically work with some engineering required.
Having said that, I see you are wanting to do cross platform communication and you mentioned the MultipeerConnectivity API, can you elaborate more on the cross platform aspect of your requirement?
| But i don,t get any working solution for cross platform connection and communication
Matt Eaton
DTS Engineering, CoreOS
meaton3 at apple.com