diff --git a/Rhino.Licensing/Discovery/DiscoveryHost.cs b/Rhino.Licensing/Discovery/DiscoveryHost.cs index 89312d2..40d5153 100644 --- a/Rhino.Licensing/Discovery/DiscoveryHost.cs +++ b/Rhino.Licensing/Discovery/DiscoveryHost.cs @@ -45,8 +45,12 @@ private void SetSocketOptionsForNic(NetworkInterface nic) .ToList() .ForEach( address => - socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, - new MulticastOption(IPAddress.Parse(AllHostsMulticastIP), address.Address))); + { + try { + socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, + new MulticastOption(IPAddress.Parse(AllHostsMulticastIP), address.Address)); + } catch { } + }); } private void StartListening() @@ -155,4 +159,4 @@ public void Dispose() socket.Dispose(); } } -} \ No newline at end of file +}