Hi
I’m doing a similar thing here, I have a windows app I wrote that listens for ssdp M-SEARCH
I have tested it from other windows machines on the LAN, works great.
I can’t get the SmartApp to broadcast to it, I can get responses form most other devices on my LAN. My code SmartApp is very similar to the Generic UPnP SmartApp
Finds all the routers, gateways all on port 1900 as per specs
Cloud to hub seems to be doing something else.
Hoping someone can help
As verified by what the SmartApp is seeing or by debugging your Windows app?
If you know that the SSDP M-SEARCH request is being sent out by SmartThings, received by other devices, and the M-SEARCH responses are being received by SmartThings from the other devices, I would start by checking what the Windows app is actually seeing. Is it receiving the M-SEARCH requests? If so, then I would check to make sure it is sending out responses that can be captured with other SSDP sniffing tools.
I’ve found that SmartThings is quite particular about the format of SSDP messages it receives.
(FWIW, I helped @ghesp debug his initial SSDP issues)
–Edit–
Can you confirm what it is you are trying to accomplish? Are you trying to get SmartThings to see your Windows device/app? Or are you trying to get your Windows device/app to find SmartThings on the network?
Based on your second post, it looks like you are listening for any UDP multicast traffic received on port 1900. I’m assuming this is your first step in setting up a Windows app that will listen for M-SEARCH requests and then be able to respond to them?
Hi Joshua
I have it working now, M-Search from the cloud thru the hub to my windows device.
My app is now seeing all traffic and replying as required.
It was a multicast issue on my end.
Wow - that’s an eye opener, so much ssdp traffic already on my LAN
Working on Verification & Inclusion now.