title: UDP Multicast Sending (using JoinMulticastGroup) in C#
body: <p>I know there are plenty of examples around the web regarding UDP multicasting in C#. This is more to get a clarification on the need to include the method <strong>JoinMulticastGroup</strong> when sending only. Most code examples I have come across nearly always include this method as part of the initialisation code. But surely if the program or class is only ever sending, then it is not required?</p>
  
  <p>i.e. on another stackoverflow question someone uses the code</p>
  
  <pre><code>public void SendMessage(string message)
  {
      var data = Encoding.Default.GetBytes(message);
      using (var udpClient = new UdpClient(AddressFamily.InterNetwork))
      {
          var address = IPAddress.Parse("224.100.0.1");
          var ipEndPoint = new IPEndPoint(address, 8088);
          udpClient.JoinMulticastGroup(address);
          udpClient.Send(data, data.Length, ipEndPoint);
          udpClient.Close();
      }
  }
  </code></pre>
  
  <p>Is the line <code>udpClient.JoinMulticastGroup(address);</code> not actually redundant in this case? </p>