title: Why using two IPEndPoint?
body: <p>I am creating a UDP Server.I found following code reference from MSDN.Can any one please explain why they are using two IPEndPoint objects in the code sample.I assume second ipeEdpoint is the address of sender(Client). But how it is possible? Ip address of client can be extract from the Data gram packet, So what is the purpose for the second object here?This may be a simple and silly question but i am little confusing...:D</p>
  
  <pre><code>  byte[] data = new byte[1024];
  
    IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 9050);
  
    UdpClient newsock = new UdpClient(ipep);
  
    Console.WriteLine("Waiting for a client...");
  
    IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0);
  
    data = newsock.Receive(ref sender);
  </code></pre>