Use WSAGetLastError() to determine cause of network errors on Windows.