Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Android support Zeroconf/Bonjour over Bluetooth? How about TCP/IP?

On iPhone if I create custom service for example "_test._tcp.local." in Bonjour I can seek/broadcast this service through WiFi or/and Bluetooth.

It is possible on Android ?

I know that there is jmDNS but from what I understand it works only through WiFi/Network, not Bluetooth.

Thanks

EDIT by Seva Alekseyev, who offered the bounty: I'm not after workarounds (like Zeroconf sans Bluetooth or Bluetooth sans Zeroconf). I'm after the real thing.

like image 242
dancio Avatar asked Dec 02 '11 09:12

dancio


1 Answers

Not on bluetooth, because Android currently doesn't support TCP/IP over bluetooth, and Android's native NSD support (network service discovery) works over IP.

It DOES, however, work over Wi-Fi. Also, Android supports service discovery over Wi-Fi Direct, which gives you greater range and battery efficiency than bluetooth. For a guide on how to integrate service discovery into a wi-fi direct enabled application, check out the Android Training lesson.

Portions of this answer are duplicated from our Dear Android video response to this question

like image 121
Alexander Lucas Avatar answered Nov 20 '22 15:11

Alexander Lucas