0

I am trying to connect multiple android devices, but it is working for 2 devices (Server < -- > Client communication), I want to achieve multiple client connected to server at a time all, i.e One android device as a server and other as clients.

I am following this code

https://stackoverflow.com/a/13510591/8647372

but its not getting connected, getting this error

java.io.IOException: read failed, socket might closed or timeout, read ret: -1

Please help, trying from long time...

Ali
  • 3,346
  • 4
  • 21
  • 56
Kapil
  • 11
  • 3
  • use this instead ,https://github.com/arissa34/Android-Multi-Bluetooth-Library – Radhey Apr 16 '18 at 10:31
  • also tried it, but not working. can connect only 2 device – Kapil Apr 16 '18 at 11:34
  • https://stackoverflow.com/questions/18657427/ioexception-read-failed-socket-might-closed-bluetooth-on-android-4-3 – KYHSGeekCode Apr 16 '18 at 16:17
  • Possible duplicate of [IOException: read failed, socket might closed - Bluetooth on Android 4.3](https://stackoverflow.com/questions/18657427/ioexception-read-failed-socket-might-closed-bluetooth-on-android-4-3) – KYHSGeekCode Apr 16 '18 at 16:18
  • actually my main focus is on connecting multiple devices at once. simultaneously – Kapil Apr 18 '18 at 10:57

0 Answers0