Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
On Windows Server 2003 using MonoDevelop 126.96.36.199 and Mono 2.6.7
MonoDevelop configured to use Mono 2.6.7 Runtime ( not .Net runtime )
IPAddress ipAddress = IPAddress.Parse ("188.8.131.52");
EndPoint endPoint = new IPEndPoint (IPAddress.Parse("184.108.40.206"), 1900);
Socket notifySocket = new Socket (AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
notifySocket.SetSocketOption (SocketOptionLevel.IP, SocketOptionName.AddMembership, new MulticastOption (ipAddress));
This code runs fine on OS-X using Mono but on Windows the SetSocketOption call generates an exception stating "Value does not fall within expected range". Is this a bug? Is there a work-around? How can I get this to run on both Windows and OS-X?
Tested on Windows using Mono 2.10.8 runtime with same results.
WIndows sockets require different settings from "unix" sockets. The codebase must make platform specific adjustments.