title: Broadcast listener using Java?
body: <p>I have a DP(data processor, java code) running in my network and few C clients. Client needs to communicate to the DP for data exchange. Client need to discover the DP using broadcast discovery. Client will broadcast a message to which DP will listen and response for availability. I'm not sure how to add listener in Java for the broadcast messages, I tried using DatagramSocket but it asks for port number? DP should listen to broadcast message received on any port.</p>