The DiscoveryPlugin adds support to send broadcast messages and receive a response.
To include the StatusBar plugin in your PhoneGap Build application, add this to your config.xml:
<gap:plugin name="be.fullcircle.discovery.discoveryplugin" />
Sends broadcast messages using IP, PORT and BROADCAST MESSAGE. Receiving devices should reply to ip where broadcast is send from.