4

I am trying to implement a Phonegap (HTML5) application which connects to a Websocket server (running in an embedded device, also has Bonjour service) to exchange data within home network.

I would like to know the best possible way of detecting the server IP using Phonegap. I have explored and found that Titanium and Quickconnect support Bonjour. But I would like to stick to Phonegap for various other reasons.

Any alternative way of detecting the server IP within the local network is also okay.

Need your suggestion.

Vivek Kalkur
  • 2,200
  • 2
  • 21
  • 40
  • I have yet to find a PhoneGap iOS binding to Bonjour discovery protocols, but I did confirm that it is available on the platform. There is a working sample in the Apple iOS developer library called BonjourWeb. The challenge will be finding libraries to support Android and the other platforms. – Shane Holloway Mar 02 '12 at 01:06

1 Answers1

3

There are two iOS Bonjour plugin implementations for Phonegap (Cordova) on Github:

Unfortunately I haven't found a cross-platform implementation.

parsley72
  • 8,449
  • 8
  • 65
  • 98