title: UDP data not read correctly (delayed)
body: <p>I have a server running on a Windows 7 desktop PC, and a client running on a Windows XP Lenovo laptop.</p>
  
  <p>The following keeps happening in a loop:</p>
  
  <ul>
  <li>The client is broadcasting UDP packets containing some ID info.</li>
  <li>The server gets the broadcast and replies with another UDP packet with some data inside.</li>
  </ul>
  
  <p>I can see in Wireshark that the server is sending the proper data, but the <code>RECVFROM</code> function is returning some other data. After around 20-30 seconds the data is finally read correctly.</p>
  
  <p>If I run both the server and client on the desktop it works fine. Any ideas? </p>
  
  <hr>
  
  <p>Relevant piece of code: </p>
  
  <pre><code>do
      {
         result=recvfrom(_socket,buff,buffLen,0,(SOCKADDR*)&amp;SenderAddr,&amp;SenderAddrSize);
         if(result != SOCKET_ERROR)
         {
            //small processing
            .....
           ////
           sendto(_socket,buff,16,0,(SOCKADDR*)&amp;SenderAddr,sizeof(SenderAddr));
         } 
      while(true)
  </code></pre>