1

Hello, In order to get a list of the surrounding nodes announcing services in an IP network, I was trying to use Bonjour from Apple. However, I couldn't get an "easy" tutorial to do so. Moreover, I've noticed that most of the websites focus on the dynamic IP address allocation, services, etc. But I couldn't find any info about detecting the other nodes in the network. Although it looks easy and clear, I don't know from where to start. Note: I need to use Java (osgi bundles). Need Help please!! Thanks

maro
  • 53
  • 9

1 Answers1

0

Just to clarify, you can only discover other services:

  • That are on your link-local network (possible to search other domains but it's rare)
  • That are advertising themselves through mDNS

If you need to perform service discover through Java, I'd suggest using JmDNS.

Chris Mowforth
  • 6,689
  • 2
  • 26
  • 36
  • Do you know if there is an OSGI version of JmDNS? – maro Aug 26 '11 at 11:59
  • No but it shouldn't be difficult to write an OSGI bundle exposing the JmDNS methods. Is mDNS really what you're looking for? Define a 'node' in a network. – Chris Mowforth Aug 26 '11 at 15:44
  • yes, I think JmDNS is sufficient according to what what I read about it.. Actually, I just need to discover the surrounding nodes in the local network and also the services that they can offer... but I need it to work on both Windows and Linux, it is based on Java prgramming (JVM) so I suppose it works well, I'mI wrong? – maro Aug 29 '11 at 07:57
  • It'll work on Windows, Linux etc but jMDNS only picks up advertised mDNS services; it won't detect every node on the network if it's not advertising a service. – Chris Mowforth Aug 31 '11 at 09:22
  • ok, thanks and this is exactly waht I need :) But now I'm facing some probelms creating an osgi bundle for my application, although I'm starting with a very basic and simlpe example :( – maro Aug 31 '11 at 10:07