[Mono-bugs] [Bug 75351][Maj] Changed - UDP Socket does not receive broadcast UDP packets
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Aug 23 17:53:40 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by mattdurgavich at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75351
--- shadow/75351 2005-11-04 06:32:35.000000000 -0500
+++ shadow/75351.tmp.22527 2006-08-23 17:53:40.000000000 -0400
@@ -134,6 +134,14 @@
------- Additional Comments From dick at ximian.com 2005-11-04 06:32 -------
You need to set SO_BROADCAST (aka SocketOptionName.Broadcast) to
enable both sending _and_ reception of broadcast datagram packets on
Linux. Whether we should automatically enable SO_BROADCAST on all
sockets needs careful consideration (we already set it if connect ()
fails due to EACCESS.)
+
+------- Additional Comments From mattdurgavich at gmail.com 2006-08-23 17:53 -------
+In addition, you need to bind your socket to the "wildcard" IP address
+to hear broadcasts.
+Try:
+ IPEndPoint myEP = new IPEndPoint(IPAddress.Any, 9999);
+
+ I usually verify with a " netstat -an" for the entry "udp *.9999"
More information about the mono-bugs
mailing list