I want to create a crude 'listener' that receives any and all UPNP broadcast messages sent by devices when they power-up.
I'm a bit confused by UDP processing.
I already have a test app that sends an MSEARCH message and then receives a ton of responses from devices on the network.
But the test app does NOT ever receive other messages from devices, for example when a device is powered on it should send the same kind of messages as it does when it responds to an MSEARCH.
I'm using DataGramSocket for this.
I suspect I may need two sockets one to send to port 1900 but listening to a local port (this is one that works now for MSEARCH) but also another that listens on 1900...
Is that right?
Also if I do that and bind to the local port 1900, does/will that clash with the PC's SSDP listener service (which is already listening to port 1900)?
Therefore must I stop/disable that service?
Thanks
Cap'n