title: How to receive ICMP response "Port unreachable" to UDP message in C#
body: <p>I'm trying to receive ICMP response "Port unreachable" to UDP message in <code>C#</code> this is what I'm trying to do:</p>
  
  <pre class="lang-cs prettyprint-override"><code>IPEndPoint remoteEndpoint = new IPEndPoint(IPAddress.Parse("192.168.211.133"), 0);
  var udpClient = new UdpClient("192.168.211.133", 20);
  Byte[] messagebyte = Encoding.Default.GetBytes("hi".ToCharArray());
  int s = udpClient.Send(messagebyte, messagebyte.Length);
  Byte[] ReceiveBuffer = new Byte[256];
  ReceiveBuffer = udpClient.Receive(ref remoteEndpoint); 
  </code></pre>
  
  <p>but the program is stuck on</p>
  
  <pre><code>ReceiveBuffer = udpClient.Receive(ref remoteEndpoint);
  </code></pre>
  
  <p>What am I doing wrong? </p>
  
  <p>Please help me!</p>