title: UDP Response
body: <p>UDP doesnot sends any ack back, but will it send any response?</p>
  
  <p>I have set up client server UDP program. If I give client to send data to non existent server then will client receive any response?</p>
  
  <p>My assumption is as;</p>
  
  <p>Client -->Broadcast server address (ARP)
  Server --> Reply to client with its mac address(ARP)
  Client sends data to server (UDP)</p>
  
  <p>In any case Client will only receive ARP response. If server exists or not it will not get any UDP response? </p>
  
  <p>Client is using sendto function to send data. We can get error information after sendto call.</p>
  
  <p>So my question is how this info is available when client doesn't get any response.
  Error code can be get from WSAGetLastError.</p>
  
  <p>I tried to send data to non existent host and sendto call succeeded . As per documentation it should fail with return value SOCKET_ERROR.</p>
  
  <p>Any thoughts??</p>