Open SNIKO opened 11 years ago
Not sure if this is related but I was receiving an error when searching for UPNP devices in a Windows 8.1 Store app. As I have experienced this before I needed to make a change to the search call.
I added: Windows.Networking.Connectivity.ConnectionProfile connectionProfile = Windows.Networking.Connectivity.NetworkInformation.GetInternetConnectionProfile();
and changed the line: await searchSocket.BindEndpointAsync(null, "");
to await searchSocket.BindServiceNameAsync("", connectionProfile.NetworkAdapter);
This seems to work better without errors.
As soon as I've converted the library to WP 8.1, I've got the same problem in WP. It looks like they broke the multicast broadcast. Looking into it. Probably will have to back to 8.0.
Well, it was a problem in my WP emulator. Once I restarted my computer, everything has back to normal. No problems with broadcasting multicast messages to 1900 port in WP.
Due some reason, a lot of UPD packets get lost. UPnP devices do send UDP messages about their status, but only small part of them reaches the control point. So, the control point cannot precisely determine current situation in the network. It looks like these packets are somehow blocked in winrt. I don't know, maybe it is some security limitation, bug in winrt's DatagramSocket or something else.