title: How to receive UDP packets from any ip and any port?
body: <p>I wanted to use C#'s UdpClient to listen to any incomming UDP packets. I want to receive packets from any IP and any port.</p>
  
  <p>I tried the following:</p>
  
  <pre><code>UdpClient udpClient = new UdpClient(0);
  IPEndPoint ep = new IPEndPoint(IPAddress.Any, 0);
  byte[] data = udpClient.Receive(ref ep);
  </code></pre>
  
  <p>but without success.</p>
  
  <p>Does anyone know whats wrong?
  Thanks in advance!</p>