diff --git a/lib/src/discovery.dart b/lib/src/discovery.dart index c08d93b..c8dbd7e 100644 --- a/lib/src/discovery.dart +++ b/lib/src/discovery.dart @@ -1,6 +1,7 @@ part of upnp; final InternetAddress _v4_Multicast = new InternetAddress("239.255.255.250"); +final InternetAddress _v4_Multicast_1 = new InternetAddress("255.255.255.255"); final InternetAddress _v6_Multicast = new InternetAddress("FF05::C"); class DeviceDiscoverer { @@ -81,6 +82,11 @@ class DeviceDiscoverer { socket.joinMulticast(_v4_Multicast); } on OSError { } + + try { + socket.joinMulticast(_v4_Multicast_1); + } on OSError { + } try { socket.joinMulticast(_v6_Multicast); @@ -92,6 +98,11 @@ class DeviceDiscoverer { socket.joinMulticast(_v4_Multicast, interface); } on OSError { } + + try { + socket.joinMulticast(_v4_Multicast_1, interface); + } on OSError { + } try { socket.joinMulticast(_v6_Multicast, interface); @@ -141,6 +152,11 @@ class DeviceDiscoverer { socket.send(data, _v4_Multicast, 1900); } on SocketException { } + + try { + socket.send(data, _v4_Multicast_1, 1900); + } on SocketException { + } } if (socket.address.type == _v6_Multicast.type) {