You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, we have created a service which published the devices over the networks using RSSDP. Suppose the discoverable devices are connected to different networks and the client machine is connected to all of those networks at a time.
When we try to discover devices using DeviceAvailable event on client machine, connected to different networks at a time, using IpAddress.Any, then it only discovers the devices on a particular network that IpAddress belongs to and starts to ignore other networks.
That means we are able to discover the devices only from only one network.
// Process each found device in the event handler
private async void deviceLocator_DeviceAvailable(object sender, DeviceAvailableEventArgs e)
{
//Can retrieve the full device description easily though.
var ipAddress = e.DiscoveredDevice.DescriptionLocation.Host;
// Code processing
}
``
The text was updated successfully, but these errors were encountered:
Hi, we have created a service which published the devices over the networks using RSSDP. Suppose the discoverable devices are connected to different networks and the client machine is connected to all of those networks at a time.
When we try to discover devices using DeviceAvailable event on client machine, connected to different networks at a time, using IpAddress.Any, then it only discovers the devices on a particular network that IpAddress belongs to and starts to ignore other networks.
That means we are able to discover the devices only from only one network.
Here is my the sample code which I have used:
``
private async Task BeginSearchAsync()
{
SsdpDeviceLocator _DeviceLocator = new SsdpDeviceLocator(IpAddress.Any);
_DeviceLocator.NotificationFilter = "upnp:rootdevice";
_DeviceLocator.DeviceAvailable += deviceLocator_DeviceAvailable;
_DeviceLocator.StartListeningForNotifications();
await _DeviceLocator.SearchAsync();
}
// Process each found device in the event handler
private async void deviceLocator_DeviceAvailable(object sender, DeviceAvailableEventArgs e)
{
//Can retrieve the full device description easily though.
var ipAddress = e.DiscoveredDevice.DescriptionLocation.Host;
// Code processing
}
``
The text was updated successfully, but these errors were encountered: