title: Windbg Network Debugging Connection Error
body: <p>The Target Machine has Windows 8.1 installed, Host Machine has Windows 7 installed (but the Host OS has nothing to do with connection error). I'm using the Debugger of the Windows 8.1 SDK package.</p>
  
  <p><strong>Settings on Target Machine</strong></p>
  
  <pre><code>bcdedit /debug on
  bdcedit /dbgsettings net hostip:xx.xx.xx.xx port:xxxxx
  bcdedit /set {dbgsettings} busparams x.y.z
  </code></pre>
  
  <p>After that, I rebooted the Target Machine.</p>
  
  <p><strong>Error Log</strong></p>
  
  <pre><code>The transport connection between host kernel debugger and target windows seems lost. Please try resync with the target, recycle the host debugger or reboot the target windows.
  
  ... Retry sending the same data packet for 10884 times.
  
  ... Retry sending the same data packet for 10997 times.
  
  &gt;&gt;&gt;&gt;**WinSock write error. Error 0n10040**    
  &gt;&gt;&gt;&gt;WriteAll(0x00002738,0x00000003,1304,0) fails.    
  &gt;&gt;&gt;&gt;WritePacketContents failed.  Status == 0x2738
  </code></pre>
  
  <p>I also looked at above Error code meaning </p>
  
  <blockquote>
    <p>10040 WSAEMSGSIZE Message too long</p>
    
    <p>A message sent on a datagram socket was larger than the internal message buffer or some other
    network limit, or the buffer used to receive a datagram was smaller
    than the datagram itself.</p>
  </blockquote>
  
  <p>but I'm not sure how to fix it.</p>