views:

198

answers:

2

I'm building software for a company that sells hardware devices. They want the software to be able to locate all devices on the network without restricting either of their IPs.

What's the best way to do this? I'm thinking the hardware could subscribe to a "known" multicast address, have the software broadcast to it and the hardware would reply. The devices and software would reside on the same LAN so I'm not worried about multicast being blocked. I'm just worried that I'll discover that the "known" address is already in use in the future. It isn't possible for me to change this protocol once I've got devices in the wild. Please advise.

A: 

You could look into the various methods of constructing zero configuration networking.

Ben Alpert
+1  A: 

Universal Plug and Play, Bonjour or other Zero configuration networking techniques.

Max Caceres
What's the lightest, cross-platform, open-source protocol out there right now? I read that UPnP is heavy, Bonjour costs royalties, and Avahi has no Windows support.
Gili
Answering my own question: http://www.bosatsu.net/talks/JmDNS.pdf
Gili