Winsock error 10061 wsaeconnrefused

What is causing the "WSAECONNREFUSED" errors seen in SiteProtector?

Question

What is causing the «WSAECONNREFUSED» errors seen in SiteProtector?

Cause

WSAECONNREFUSED (Error code 10061) is a general windows winsock error message with the following definition:

Connection refused. No connection could be made because the target computer actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host-that is, one with no server application running.

The above error is generally caused by a drop in communication between two SiteProtector components, such as between the Sensor Controller service and a remote appliance.

Answer

Network troubleshooting should be initiated between the two affected components. Ensure that all of the necessary ports that must be open are indeed open.

Also, ensure the service ports that must be open for the affected components to function are indeed open.

For more information on how to configure firewalls for SiteProtector traffic and which ports should be open on each SiteProtector component, review the following documentation for the appropriate SiteProtector version:

SiteProtector 3.1.1

SiteProtector 3.0

[{«Product»:{«code»:»SSETBF»,»label»:»IBM Security SiteProtector System»},»Business Unit»:{«code»:»BU059″,»label»:»IBM Software w/o TPS»},»Component»:»Application Server»,»Platform»:[{«code»:»PF033″,»label»:»Windows»}],»Version»:»3.0;3.1.1″,»Edition»:»»,»Line of Business»:{«code»:»LOB24″,»label»:»Security Software»}}]

Stuck with Winsock Error 10061? We can help you.

Winsock error 10061 occurs when the target machine we are trying to connect actively refuses the request.

This ‘Connection Refused’ error happens generally when the service with which we are trying to connect is inactive.

Here at Bobcares, we often get requests from our customers to fix similar errors as a part of our Server Management Services.

Today let’s see how our Support Engineers fix this error for our customers.

How to fix Winsock Error 10061?

Before going into the steps of fixing Winsock Error 10061, we will see some of the common causes for this error.

Common causes for this Error:

1. The most common cause is a misconfigured server, full server, or using an incorrect port to connect.

2. Poor or no internet connection.

3. Service inactive on the destination server.

4. Trying to connect to the wrong host.

5. Using a port number that is higher than 655355.

6. A firewall or anti-virus software on the local computer or network connection blocking the connection.

7. Corrupted registry.

Steps to fix Winsock Error 10061

1. First we must check if the Internet connection is working properly or not.

2. Next we need to ensure that firewall is not blocking the Winsock connection.

Generally, firewalls are designed to prevent unauthorized access soo there is a possibility that it can see Winsock as a potential threat.

To unblock Winsock, we can use the following steps:

a. First, locate the firewall in the navigation bar (next to the clock)
b. Then right-click and take the “Exception List”
c. In the exception list, if Winsock is not already displayed, we will add it.

3. Run a scan to check for potential threats or viruses using any anti-virus.

4. Clean out the registry using a registry cleaner to scan through the part of the PC and repair any of the damaged settings if any.

5. After that we can verify whether the host is resolving to the correct IP address

6. Then we will check whether the ports are open and listening.

7. We must keep in mind to use any port less than 65535.

8. After this we will ensure that the service can be connected to all IP addresses. Also, we will check if the ISP allows outbound traffic on port 25.

10. If all the above steps did not help to connect, we will disable the firewall or anti-virus software and try to connect again.

[Still, facing Winsock error? We are happy to help you!]

Conclusion

To conclude, we saw various causes for Winsock error 10061 along with the steps our Support Techs follow to fix this error for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

Symptom

The JCo RFC provider program ID registration fails on gateway, the dev_jrfc.trc or defaultTrace.trc file contains this exception:

Error> occured  >Thu May 22 14:06:49,552<    
RfcException:
    message: Connect to SAP gateway failed
Connect parameters: TPNAME=SLD_NUC GWHOST=localhost GWSERV=sapgw00
ERROR       partner '127.0.0.1:sapgw00' not reached
TIME        Thu May 22 14:06:49 2015
RELEASE     720
COMPONENT   NI (network interface)
VERSION     40
RC          -10
MODULE      nixxi.cpp
LINE        3286
DETAIL      NiPConnect2: 127.0.0.1:3300
SYSTEM CALL connect
ERRNO       10061
ERRNO TEXT  WSAECONNREFUSED: Connection refused
COUNTER     18
    Return code: RFC_FAILURE(1)
    error group: 102
    key: RFC_ERROR_COMMUNICATION

Problem

The gateway process cannot be reached on the configured host and port.

Keywords

RFC_ERROR_COMMUNICATION

Connection refused

Description

The WSAECONNREFUSED — 10061 windows socket error code means that no connection could be made because the target computer activeld refused it. This usually results from trying to connect to a service that is inactive on the foreighn host.s about the problem.

Solution

Check if the gateway service is running and listening on the configured port number.

Step 1

On gateway host check if the gateway service is up and running and the port number where it is listening:

/usr/sap/<SID>/<inst_nr>/work/dev_rd:

Fri May 22 12:25:14 2015
Bind service sapgw07 (socket) to port 3307
GwIRegInitRegInfo: reg_info file D:usrsapSOLDVEBMGS07datareginfo.DAT not found
GwPrintMyHostAddr: my host addresses are :
  1 : [10.1.1.1] wdf1.sap.corp (HOSTNAME)
  2 : [127.0.0.1] wdf1.sap.corp (LOCALHOST)
Full qualified hostname = w1df.sap.corp

Step 2

 From JCo RFC provider host check if the gateway service can be reached:

500235 — Network Diagnosis with NIPING

Step 3

In JCo RFC provider host check if the sapgwNN port points to the configured gateway port:

52959 — sapms…, sapdp.., sapgw.. unknown (or not found)

Additional Information

This issue belongs to BC-CST-GW or BC-NET component.


error 10061 откуда берется при connect

От:

maxidroms

Россия

 
Дата:  05.09.05 10:10
Оценка:

При коннекте на некоторых машина постоянно возникает 10061. В чем может быть причина?
Этот коннект хоть пробивается до серверного приложения или он не проходит сам компьютер даже, на котором это серв. приложение стоит?

Помогите плз!!! Клиенты недовольны. т.к. соединиться нельзя вообще никак! Это сообщения не переодически появляется а ПОСТОЯННО, но славо богу не у всех =(


Re: error 10061 откуда берется при connect

От:

TarasCo

 
Дата:  05.09.05 10:23
Оценка:

Здравствуйте, maxidroms, Вы писали:

M>При коннекте на некоторых машина постоянно возникает 10061. В чем может быть причина?

M>Этот коннект хоть пробивается до серверного приложения или он не проходит сам компьютер даже, на котором это серв. приложение стоит?

Где угодно
1)На локальной машине. Тогда «виноват» скорее всего персональный фаерволл
2)На шлюзе/прокси и.т.п. «Виноват» скорее всего межсетевой экран ( настоящий фаервол )
3)На серевре — скоре всего, опять же фаерволл.

В нормальной ситуации эта ошибка возникает, если на сервере не прослушивается запрашиваемый порт. В этом случае он отвечает RST+FIN что и означает активный отказ от соединения. Поскольку это происходит не со всеми клиентами, то стоит предположить, что порт указан верно, следовательно соединения отвергаются не сервером ( нужно проверить настройки клиентского ПО, если там задается порт ). Кроме серевра соединения могут отвергнуть фаерволл, прокси и.т.п. Если сервер расположен в инетнете, первым делом нужно проверить настройки прокси для выхода в интернет для этих пользователей.

Да пребудет с тобою сила


Re[2]: error 10061 откуда берется при connect

От:

maxidroms

Россия

 
Дата:  05.09.05 10:30
Оценка:

Здравствуйте, TarasCo, Вы писали:

TC>Здравствуйте, maxidroms, Вы писали:


M>>При коннекте на некоторых машина постоянно возникает 10061. В чем может быть причина?

M>>Этот коннект хоть пробивается до серверного приложения или он не проходит сам компьютер даже, на котором это серв. приложение стоит?

TC>Где угодно

TC>1)На локальной машине. Тогда «виноват» скорее всего персональный фаерволл
TC>2)На шлюзе/прокси и.т.п. «Виноват» скорее всего межсетевой экран ( настоящий фаервол )
TC>3)На серевре — скоре всего, опять же фаерволл.

TC>В нормальной ситуации эта ошибка возникает, если на сервере не прослушивается запрашиваемый порт. В этом случае он отвечает RST+FIN что и означает активный отказ от соединения. Поскольку это происходит не со всеми клиентами, то стоит предположить, что порт указан верно, следовательно соединения отвергаются не сервером ( нужно проверить настройки клиентского ПО, если там задается порт ). Кроме серевра соединения могут отвергнуть фаерволл, прокси и.т.п. Если сервер расположен в инетнете, первым делом нужно проверить настройки прокси для выхода в интернет для этих пользователей.

А что может быть с настройками не то если:
Стоит обычная пользовательская машина, выход по модему через провайдера. Все после этого встречается мой сервак т .к. он висит на выделенном ай-пи. в интернете.

Коннекты с разных городов. Это может значить то что у провайдера закрыт порт или еще что то? Иными словами дело в провайдере? Ведь при модемном соединении никаких предварительных настроек Рабочей группы и ай-пи адреса не делается?!


Re[3]: error 10061 откуда берется при connect

От:

TarasCo

 
Дата:  05.09.05 11:07
Оценка:

Здравствуйте, maxidroms, Вы писали:

M>Здравствуйте, TarasCo, Вы писали:


TC>>Здравствуйте, maxidroms, Вы писали:


M>>>При коннекте на некоторых машина постоянно возникает 10061. В чем может быть причина?

M>>>Этот коннект хоть пробивается до серверного приложения или он не проходит сам компьютер даже, на котором это серв. приложение стоит?

TC>>Где угодно

TC>>1)На локальной машине. Тогда «виноват» скорее всего персональный фаерволл
TC>>2)На шлюзе/прокси и.т.п. «Виноват» скорее всего межсетевой экран ( настоящий фаервол )
TC>>3)На серевре — скоре всего, опять же фаерволл.

TC>>В нормальной ситуации эта ошибка возникает, если на сервере не прослушивается запрашиваемый порт. В этом случае он отвечает RST+FIN что и означает активный отказ от соединения. Поскольку это происходит не со всеми клиентами, то стоит предположить, что порт указан верно, следовательно соединения отвергаются не сервером ( нужно проверить настройки клиентского ПО, если там задается порт ). Кроме серевра соединения могут отвергнуть фаерволл, прокси и.т.п. Если сервер расположен в инетнете, первым делом нужно проверить настройки прокси для выхода в интернет для этих пользователей.

M>А что может быть с настройками не то если:


M>Стоит обычная пользовательская машина, выход по модему через провайдера. Все после этого встречается мой сервак т .к. он висит на выделенном ай-пи. в интернете.

M>Коннекты с разных городов. Это может значить то что у провайдера закрыт порт или еще что то? Иными словами дело в провайдере? Ведь при модемном соединении никаких предварительных настроек Рабочей группы и ай-пи адреса не делается?!

1)
Возможны «происки» встроенных фаерволов. Например стандартному фаерволу из Win XP SP2 может не понравится идея соедиится с портом N на адрес M. IMHO любой персональный фаервол будет блокировать такие попытки.

2)Дело в провайдере?
про провайдеров не знаю, какая у них там политика безопасности? Но я бы на их месте тоже все подряд порты не открывал. В любом случае, можно обратиться в саппорт и поинтересоваться.

Да пребудет с тобою сила


Re[4]: error 10061 откуда берется при connect

От:

maxidroms

Россия

 
Дата:  05.09.05 11:09
Оценка:

Здравствуйте, TarasCo, Вы писали:

TC>Здравствуйте, maxidroms, Вы писали:


M>>Здравствуйте, TarasCo, Вы писали:


TC>>>Здравствуйте, maxidroms, Вы писали:


M>>>>При коннекте на некоторых машина постоянно возникает 10061. В чем может быть причина?

M>>>>Этот коннект хоть пробивается до серверного приложения или он не проходит сам компьютер даже, на котором это серв. приложение стоит?

TC>>>Где угодно

TC>>>1)На локальной машине. Тогда «виноват» скорее всего персональный фаерволл
TC>>>2)На шлюзе/прокси и.т.п. «Виноват» скорее всего межсетевой экран ( настоящий фаервол )
TC>>>3)На серевре — скоре всего, опять же фаерволл.

TC>>>В нормальной ситуации эта ошибка возникает, если на сервере не прослушивается запрашиваемый порт. В этом случае он отвечает RST+FIN что и означает активный отказ от соединения. Поскольку это происходит не со всеми клиентами, то стоит предположить, что порт указан верно, следовательно соединения отвергаются не сервером ( нужно проверить настройки клиентского ПО, если там задается порт ). Кроме серевра соединения могут отвергнуть фаерволл, прокси и.т.п. Если сервер расположен в инетнете, первым делом нужно проверить настройки прокси для выхода в интернет для этих пользователей.

M>>А что может быть с настройками не то если:


M>>Стоит обычная пользовательская машина, выход по модему через провайдера. Все после этого встречается мой сервак т .к. он висит на выделенном ай-пи. в интернете.

M>>Коннекты с разных городов. Это может значить то что у провайдера закрыт порт или еще что то? Иными словами дело в провайдере? Ведь при модемном соединении никаких предварительных настроек Рабочей группы и ай-пи адреса не делается?!


TC>1)

TC>Возможны «происки» встроенных фаерволов. Например стандартному фаерволу из Win XP SP2 может не понравится идея соедиится с портом N на адрес M. IMHO любой персональный фаервол будет блокировать такие попытки.

TC>2)Дело в провайдере?

TC>про провайдеров не знаю, какая у них там политика безопасности? Но я бы на их месте тоже все подряд порты не открывал. В любом случае, можно обратиться в саппорт и поинтересоваться.

Ну хоть вы меня успокоили что это не в клиентской и не в серверной части дело…а то меня уже на куски тут готовы разорвать


Re[2]: error 10061 откуда берется при connect

От:

MaximE

Великобритания

 
Дата:  06.09.05 09:45
Оценка:

10 (1)

TarasCo wrote:

[]

> В нормальной ситуации эта ошибка возникает, если на сервере не прослушивается запрашиваемый порт. В этом случае он отвечает RST+FIN что и означает активный отказ от соединения.

В этом случае отсылается только RST.

[root@localhost max]# tcpdump -i lo tcp port 10000
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 96 bytes
13:23:50.494285 IP localhost.localdomain.41915 > localhost.localdomain.10000: S 176260357:176260357(0) win 32767 <mss 16396,sackOK,timestamp 4126888 0,nop,wscale 2>
13:23:50.558286 IP localhost.localdomain.10000 > localhost.localdomain.41915: R 0:0(0) ack 176260358 win 0

2 packets captured
4 packets received by filter
0 packets dropped by kernel


Maxim Yegorushkin

Posted via RSDN NNTP Server 1.9


Re[3]: error 10061 откуда берется при connect

От:

TarasCo

 
Дата:  06.09.05 12:21
Оценка:

Здравствуйте, MaximE, Вы писали:

ME>В этом случае отсылается только RST.

Да, это меня переглючило, мысль ушла . RST+ACK S:0 A:xxxxxxx обычно отвечают
Спасибо за коррективу

Да пребудет с тобою сила


Re: error 10061 откуда берется при connect

От:

Michael Chelnokov

Украина

 
Дата:  10.09.05 11:46
Оценка:

Здравствуйте, maxidroms, Вы писали:

M>При коннекте на некоторых машина постоянно возникает 10061. В чем может быть причина?

Вы рано успокоились насчет серверной части
Почему-то никто не обратил внимания на то что ошибка 10061 — это WSAECONNREFUSED:
Connection refused.
No connection could be made because the target computer actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host—that is, one with no server application running.

Возможные причины? Реализация сервера. Например он однопоточный, с последовательной обработкой запросов. И пока он обрабатывает один запрос, успевает поступить больше чем backlog (см. второй параметр функции listen) запросов. Все остальные получат WSAECONNREFUSED.
В более сложном случае при большой нагрузке может не успевать доходить ход до потока, делающего accept. С тем же результатом. Посмотрите

здесь

Автор: Michael Chelnokov
Дата: 09.11.01

и что мне тогда посоветовали.


Re[2]: error 10061 откуда берется при connect

От:

MaximE

Великобритания

 
Дата:  10.09.05 12:16
Оценка:

Здравствуйте, Michael Chelnokov, Вы писали:

MC>Здравствуйте, maxidroms, Вы писали:


M>>При коннекте на некоторых машина постоянно возникает 10061. В чем может быть причина?


MC>Вы рано успокоились насчет серверной части

MC>Почему-то никто не обратил внимания на то что ошибка 10061 — это WSAECONNREFUSED:
MC>Connection refused.
MC>No connection could be made because the target computer actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host—that is, one with no server application running.

MC>Возможные причины? Реализация сервера. Например он однопоточный, с последовательной обработкой запросов. И пока он обрабатывает один запрос, успевает поступить больше чем backlog (см. второй параметр функции listen) запросов. Все остальные получат WSAECONNREFUSED.

В этом случае клиенты получат WSAETIMEDOUT, а не WSAECONNREFUSED.

Когда очередь установленных соединений заполнена, новые клиенты не получают RST на свой SYN (что вызвало бы WSAECONNREFUSED). Новые клиенты не получают ничего на свой FIN, поэтому TCP стэк клиента будет еще несколько раз пытаться установить соединение посылая серверу SYN, пока не соединится успешно или не отвалится по таймауту с ошибкой WSAETIMEDOUT.


Re[3]: error 10061 откуда берется при connect

От:

Michael Chelnokov

Украина

 
Дата:  10.09.05 13:01
Оценка:

Здравствуйте, MaximE, Вы писали:

MC>>Возможные причины? Реализация сервера. Например он однопоточный, с последовательной обработкой запросов. И пока он обрабатывает один запрос, успевает поступить больше чем backlog (см. второй параметр функции listen) запросов. Все остальные получат WSAECONNREFUSED.


ME>В этом случае клиенты получат WSAETIMEDOUT, а не WSAECONNREFUSED.

Максим, я бы не писал если бы не знал. Если проверишь, то увидишь в этом случае именно WSAECONNREFUSED для тех клиентов что не поместились в очередь. WSAETIMEDOUT они получат если совсем ничего не будет в ответ. А в данном случае ответ четкий — сервер активно не захотел принимать входящее соединение.


Re[4]: error 10061 откуда берется при connect

От:

MaximE

Великобритания

 
Дата:  10.09.05 13:07
Оценка:

Здравствуйте, Michael Chelnokov, Вы писали:

MC>Здравствуйте, MaximE, Вы писали:


MC>>>Возможные причины? Реализация сервера. Например он однопоточный, с последовательной обработкой запросов. И пока он обрабатывает один запрос, успевает поступить больше чем backlog (см. второй параметр функции listen) запросов. Все остальные получат WSAECONNREFUSED.


ME>>В этом случае клиенты получат WSAETIMEDOUT, а не WSAECONNREFUSED.


MC> … А в данном случае ответ четкий — сервер активно не захотел принимать входящее соединение.

И что в этом случае сервер отсылает клиенту?


Re[3]: error 10061 откуда берется при connect

От:

Michael Chelnokov

Украина

 
Дата:  10.09.05 13:10
Оценка:

1 (1)

Здравствуйте, MaximE, Вы писали:

ME>Когда очередь установленных соединений заполнена, новые клиенты не получают RST на свой SYN

Не факт. Судя по Стивенсу, POSIX разрешает как игнорировать SYN, так и отвечать на него RST.
В Windows — второй вариант. В BSD — первый.
Давайте будем отталкиваться от того факта что клиенты все же получают RST, т.к. ошибка именно ECONNREFUSED, а не ETIMEDOUT. Т.е. кто-то все же отсылает оный RST. Почему бы не предположить что этот кто-то и есть сервер? Сервер под Windows


Re[5]: error 10061 откуда берется при connect

От:

Michael Chelnokov

Украина

 
Дата:  10.09.05 13:11
Оценка:

Здравствуйте, MaximE, Вы писали:

MC>> … А в данном случае ответ четкий — сервер активно не захотел принимать входящее соединение.


ME>И что в этом случае сервер отсылает клиенту?

RST

Подождите ...

Wait...

  • Переместить
  • Удалить
  • Выделить ветку

Пока на собственное сообщение не было ответов, его можно удалить.

WSABASEERR (1000) No Error

No Error. There’s
at least one WinSock implementation that will occasionally fail a
function and report this as the error value, even though the function
succeeded. You should simply ignore this error when it occurs.

WSAEINTR (10004) Interrupted system call

A
blocking operation was interrupted by a call to WSACancelBlockingCall.
An asynchronous signal (such as SIGINT or SIGQUIT) was caught by the
process during the execution of an interruptible function. If the signal
handler performs a normal return, the interrupted function call will
seem to have returned the error condition.

Developer suggestions:
You need to be prepared to handle this error on any functions that
reference blocking sockets, or any calls to blocking functions, if you
allow the user to cancel a blocking call. Whether to handle it as a
fatal error or non-fatal error depends on the application and the
context, so it’s up to you to decide.

WSAEBADE (10009) Bad file number

A
file descriptor argument was out of range, referred to no open file, or
a read (write) request was made to a file that was only open for
writing (reading).

WinSock description: No equivalent
in WinSock. However, because a BSD socket is equivalent to a file
handle, some Windows Sockets platforms provide some file handle and
socket equivalency. In this case, the WSAEBADF error might mean the same
as a WSAENOTSOCK error.

WSAEACCES (10013) Permission denied

An
attempt was made to access a file in a way forbidden by its file access
permissions. The file’s permission setting does not allow the specified
access. This error signifies that an attempt was made to access a file
(or, in some cases, a directory) in a way that is incompatible with the
file’s attributes. For example, the error can occur when an attempt is
made to read from a file that is not open, to open an existing read-only
file for writing, or to open a directory instead of a file. Under
MS-DOS versions 3.0 and later, EACCES may also indicate a locking or
sharing violation. The error can also occur in an attempt to rename a
file or directory or to remove an existing directory.

WSAEFAULT (10014) Bad address

The system detected an invalid address in attempting to use an argument of a call.

WSAEFAULT (10022) Invalid argument

An
invalid value was given for one of the arguments to a function. For
example, the value given for the origin when positioning a file pointer
(by means of a call to fseek) is before the beginning of the file.

WSAEMFILE (10024) Too many open files

No
process may have more than a system-defined number of file descriptors
open at a time. No more file handles are available, so no more files can
be opened.. Generically, the error means the network system has run out
of socket handles.

User suggestions: There may be too
many Winsock applications running simultaneously, but this is unlikely
since most network systems have many socket handles available. This
error also could occur if an application opens and closes sockets often,
but doesn’t properly close the sockets (so it leaves them open, as
‘orphans’). To recover the orphaned sockets, you can try closing the
application and restarting it to recover the open sockets; you may have
to end all Winsock applications (to force an unload of the Winsock DLL).

WSAEWOULDBLOCK (10035) Operation would block

This
is a temporary condition and later calls to the same routine may
complete normally. The socket is marked as non-blocking (non-blocking
operation mode), and the requested operation is not complete at this
time.

WSAEINPROGRESS (10036) Operation now in progress

An operation that takes a long time to complete (such as a connect) was attempted on a non-blocking socket.

Winsock description:
The Windows Sockets definition of this error is very different from
Berkeley Sockets. Winsock only allows a single blocking operation to be
outstanding per task (or thread), and if you make any other function
call (whether or not it references that or any other socket) the
function fails with the WSAEINPROGRESS error. It means that there is a
blocking operation outstanding.

It is also possible that Winsock
might return this error after an application calls connect a second time
on a non-blocking socket while the connection is pending (i.e. after
the first failed with WSAEWOULDBLOCK). This is what occurs in Berkeley
Sockets.

WSAEALREADY (10037) Operation already in progress

An operation was attempted on a non-blocking object that already had an operation in progress.

WinSock description:
WSAEALREADY means that the asynchronous operation you attempted to
cancel has already been canceled. However, there’s little distinction
between WSAEALREADY and WSAEINVAL since a WinSock DLL cannot tell the
difference between an asynchronous operation that has been cancelled and
one that was never valid.

Additional functions:
Berkeley sockets connect returns this error on subsequent calls, after
an initial call on a non-blocking socket. However, some WinSocks fail
with WSAEINVAL you call connect. a second time (or subsequent) on a
non-blocking socket.

WSAENOTSOCK (10038) Socket operation on non-socket

An operation was attempted on something that is not a socket. The specified socket parameter refers to a file, not a socket.

WSAEDESTADDRREQ (10039) Destination address required

A
required address was omitted from an operation on a socket. The
explanation is simple and obvious: in order to connect to or send to a
destination address, you need to provide the destination address.

User suggestions: Did you enter a destination hostname? If so, then the application might have had a problem resolving the name.

WSAEMSGSIZE (10040) Message too long

A message sent on a socket was larger than the internal message buffer or some other network limit.

Recv
and Recvfrom: If the datagram you read is larger than the buffer you
supplied, then Winsock truncates the datagram (i.e. copies what it can
into your buffer) and fails the function.

Send and Sendto: you
cannot send a datagram as large as you’ve requested. Note that the v1.1
Winsock specification does not explicitly state that this error occurs
if the value you request is larger than the WSAData.iMaxUdpDg returned
from WSAStartup. Since the buffering requirements for sending are less
than for receiving datagrams, it’s conceivable that you can send a
datagram larger than you can receive.

WSAEPROTOTYPE (10041) Protocol wrong type for socket

A
protocol was specified that does not support the semantics of the
socket type requested. For example, you cannot use the ARPA Internet UDP
protocol with type SOCK_STREAM.

This error occurs if you
specifically reference a protocol that isn’t part of the address family
you also reference. The only function that takes these two explicit
parameters is socket.

WSAENOPROTOOPT (10042) Bad protocol option

A bad option or level was specified in a getsockopt(2) or setsockopt(2) call. The option is unknown or unsupported.

WSAEPROTONOSUPPORT (10043) Protocol not supported

The
protocol has not been configured into the system, or no implementation
for it exists. So, for example, if a Winsock implementation doesn’t
support SOCK_RAW with IPPROTO_IP (or any other protocol), then the
socket call would fail with WSAEPROTONOSUPPORT (however, if it doesn’t
support SOCK_RAW at all, you should expect WSAESOCKTNOSUPPORT).

WSAESOCKTNOSUPPORT (10044) Socket type not supported

The
support for the socket type has not been configured into the system or
no implementation for it exists. The Winsock description for this error
is ‘the specified socket type is not supported in this address family.’
So, for example, you can expect this error if a Winsock implementation
doesn’t support socket type SOCK_RAW within the Internet address family
(AF_INET).

WSAEOPNOTSUPP (10045) Operation not supported on socket

The
attempted operation is not supported for the type of object referenced.
Usually this occurs when a file descriptor refers to a file or socket
that cannot support this operation, for example, trying to accept a
connection on a datagram socket.

WSAEPFNOSUPPORT (10046) Protocol family not supported

The protocol family has not been configured into the system or no implementation for it exists.

WSAEAFNOSUPPORT (10047) Address family not supported by protocol family

An
address incompatible with the requested protocol was used. For example,
you shouldn’t necessarily expect to be able to use NS addresses with
ARPA Internet protocols.

It also occurs with functions that take
a socket handle and a sockaddr structure as input parameters. A socket
already has a type (a protocol), and each sockaddr structure has an
address family field to define its format. A function fails with
WSAEAFNOSUPPORT if the address family referenced in sockaddr is not
compatible with the referenced socket’s protocol.

This error
apparently also takes the place of WSAEPFNOSUPPORT (which means
‘protocol family not supported’), since that error is not listed for
socket. in the v1.1 WinSock specification.

WSAEADDRINUSE (10048) Address already in use

Only one usage of each address is normally permitted.

WinSock description:
The ‘address’ they refer to, typically refers to the local ‘socket
name’, which is made up of the 3-tuple: protocol, port-number and IP
address.
User suggestions: Two of the same types of server
applications cannot use the same port on the same machine. For instance,
this error will occur if you try to run two applications that have FTP
servers that both try to accept connections on port 21 (the standard FTP
port). In this case, the 2nd application will fail with WSAEADDRINUSE.

WSAEADDRNOTAVAIL (10049) Can’t assign requested address

Normally results from an attempt to create a socket with an address not on this machine.

WinSock description:
The ‘address’ it refers to is the remote socket name (protocol, port
and address). This error occurs when the sin_port value is zero in a
sockaddr_in structure for connect or sendto.

This error also
occurs when you are trying to name the local socket (assign local
address and port number) with bind, but Windows Sockets doesn’t ascribe
this error to bind, for some unknown reason.

WSAENETDOWN (10050) Network is down

A
socket operation encountered a dead network. Check your Winsock,
protocol stack, network driver, and network interface card
configuration. Note that this error occurs rarely, because a Winsock
implementation cannot reliably detect hardware problems.

WSAENETUNREACH (10051) Network is unreachable

A socket operation was attempted to an unreachable network.

TCP/IP scenario:
The local network system can generate this error if there is no a
default route configured. Typically though, Winsock generates this error
when it receives a ‘host unreachable’ ICMP message from a router. The
ICMP message means that a router cannot forward the IP datagram,
possibly because it did not get a response to an ARP request (which
might mean the destination host is down). Note: this error may also
result if you try to send a multicast packet and the default gateway
does not support multicast (check your interface configuration).

WSAENETRESET (10052) Net dropped connection or reset

The host you were connected to crashed and rebooted. Try reconnecting at a later time.

WSAECONNABORTED (10053) Software caused connection abort

A
connection abort was caused internal to your host machine. The software
caused a connection abort because there is no space on the socket’s
queue and the socket cannot receive further connections.

WinSock description:
The error can occur when the local network system aborts a connection.
This would occur if WinSock aborts an established connection after data
retransmission fails (receiver never acknowledges data sent on a
datastream socket).

TCP/IP scenario: A connection will
timeout if the local system doesn’t receive an (ACK)nowledgement for
data sent. It would also timeout if a (FIN)ish TCP packet is not ACK’d
(and even if the FIN is ACK’d, it will eventually timeout if a FIN is
not returned).

WSAECONNRESET (10054) Connection reset by peer

A
connection was forcibly closed by a peer. This normally results from a
loss of the connection on the remote socket due to a timeout or a
reboot.

User suggestions: Some network systems have
commands to report statistics. In this case, it might be possible to
check the count of TCP RST packets received, or ICMP Port Unreachable
packets. See other suggestions under WSAECONNABORTED.

WSAENOBUFS (10055) No buffer space available

An
operation on a socket or pipe was not performed because the system
lacked sufficient buffer space or because a queue was full.

This
error indicates a shortage of resources on your system. It can occur if
you’re trying to run too many applications (of any kind) simultaneously
on your machine. If this tends to occur after running certain
applications for a while, it might be a symptom of an application that
doesn’t return system resources (like memory) properly. It may also
indicate you are not closing the applications properly. If it persists,
exit Windows or reboot your machine to remedy the problem. You can
monitor available memory with Program Manager’s ‘Help/About…’ command.

WSAEISCONN (10056) Socket is already connected

A
connect request was made on an already connected socket; or, a sendto
or sendmsg() request on a connected socket specified a destination when
already connected.

Winsock description: Winsock doesn’t
support the sendmsg() function, and some Winsock implementations are
not so strict as to require an application with a datagram socket to
‘disconnect’—by calling connect with a AF_INET NULL destination
address: INADDR_ANY (0.0.0.0), and port 0—before redirecting datagrams
with sendto or connect. On a datastream socket, some applications use
this error with a non-blocking socket calling connect to detect when a
connection attempt has completed, although this is not recommended since
some Winsocks fail with WSAEINVAL on subsequent connect calls.

WSAENOTCONN (10057) Socket is not connected

A
request to send or receive data was disallowed because the socket is
not connected and (when sending on a datagram socket) no address was
supplied.

WSAESHUTDOWN (10058) Can’t send after socket shutdown

A
request to send data was disallowed because the socket had already been
shut down with a previous shutdown call. By calling shutdown, you do a
partial close of a socket, which means you have discontinued sending.
The Winsock implementation will not allow you to send after this.

When
you get this error it usually means the system was trying to send a
message that was larger than the receiving system would accept OR the
receiving system had a disk full condition (or something similar). The
receiving system just stops receiving and has to close the socket to do
so.

WSAETOOMANYREFS (10059) Too many references, can’t splice

There are too many references to some kernel-level object; the associated resource has run out.

WSAETIMEDOUT (10060) Connection timed out

A
connect or send request failed because the connected party did not
properly respond after a period of time. (The timeout period is
dependent on the communication protocol.)

Check the obvious
first: check that the destination address is a valid IP address. If you
used a hostname, did it resolve to the correct address? If the hostname
resolution uses a local host table, it is possible you resolved to an
obsolete address. Can you ping that hostname?

Do you have a
router configured? Is the router up and running? (You can check by
pinging it, and then ping an address on the other side of it.) Try a
traceroute to the destination address to check that all the routers are
functioning.

Check your subnet mask. If you don’t have the
proper subnet mask, your network system may treat a local address as a
remote address (so it forwards addresses on the local subnet to the
router, rather than broadcasting an ARP request locally), or vice versa.

WSAECONNREFUSED (10061) Connection refused

Connection refused:
No connection could be made because the target machine actively refused
it. This usually results from trying to connect to a service that is
inactive on the foreign host.

User suggestions: Either
you went to the wrong host, or the server application you’re trying to
contact isn’t executing. Check the destination address you are using. If
you used a hostname, did it resolve to the correct address? If the
hostname resolution uses a local hosttable, it’s possible you resolved
to an old obsolete address. It’s also possible that the local services
file has an incorrect port number (although it’s unlikely).

WSAELOOP (10062) Too many levels of symbolic links

A pathname lookup involved more than eight symbolic links. (Too many links were encountered in translating a pathname.)

WSAENAMETOOLONG (10063) File name too long

A component of a path name exceeded 255 (MAXNAMELEN) characters, or an entire path name exceeded 1023 (MAXPATHLEN-1) characters.

WSAEHOSTDOWN (10064) Host is down

The problem may be due to one of the following:

WSAVERNOTSUPPORTED (10092) WINSOCK DLL Version out of range

The
current Winsock implementation does not support the Windows Sockets
specification version requested by the application. Do you have the
Winsock DLL that supports the version of the Winsock specification
required by the application? If so, is there an older DLL in a directory
in the path ahead of the directory containing the newer DLL? If not,
check with your Winsock vendor to see if they have a newer Winsock
available.

In other words, the Winsock you are using is not
supported by the program you are using. You would need to update your
Winsock to a supported version. In most cases, the default Winsock that
comes with your OS is appropriate. However, there are some TCP/IP
dialers that install their own Winsock.dll which may not be compatible
with our programs.

WSANOTINITIALISED (10093) Successful WSASTARTUP not yet performed

Either
your application hasn’t called WSAStartup, or WSAStartup failed. There
is another possibility: you are accessing a socket which the current
active task does not own (that is, you’re trying to share a socket
between tasks).

Chances are the network subsystem is misconfigured or inactive.

WSAEREMOTE (10071) Too many levels of remote in path

Item
is not local to the host. A server has attempted to handle an NFS
request by generating a request to another NFS server, which is not
allowed.

WSAHOST_NOT_FOUND (11001) Host not found

The
name you have used is not an official hostname or alias. This is not a
software error, another type of name server request may be successful.
Any of the Winsock name resolution functions can fail with this error.
The Winsock API does not provide any way to select specific name
resolution protocols, server address, or record type.

TCP/IP scenario:
Most Winsock implementations use domain name system (DNS) protocol for
hostname to address resolution, although a few use Network Information
System (NIS). Assuming you have a name server configured instead of or
as well as a host table, a hostname resolution request causes a Winsock
DLL to send a DNS ‘A’ record query (address query) to the configured DNS
query. If you have more than one server configured, the hostname query
fails only after the Winsock DLL has queried all servers.

Check
that you have a name server(s) and/or host table configured. If you are
using a name server(s), check whether the server host(s) are up. For
example, you can try to ping the server(s).

You could also try
to resolve another hostname you know should work, to check that the name
resolution server application is running.

If you are using a host table exclusively, you’ll need to update it to add the destination hostname and address.

WSATRY_AGAIN (11002) Non-Authoritative Host not found

This
is usually a temporary error and means that the local server did not
receive a response from an authoritative server. A retry at some time
later may be successful. See HOST_NOT_FOUND for details.

WSANO_RECOVERY (11003) Non-Recoverable errors: FORMERR, REFUSED, NOTIMP

Windows
Sockets specification notes the domain name system (DNS) errors
‘FORMERR, REFUSED, and & NOTIMP. For protocols and services
resolution, it means the respective database wasn’t located.

Format error: Name server was unable to interpret the query.

Request refused: Name server refuses to satisfy your query for policy reasons.

Not implemented: Name server does not perform specified operation.

WSANO_DATA (11004)* Valid name, no data record of requested type

The
requested name is valid, but does not have an Internet IP address at
the name server. This is not a temporary error. This means another type
of request to the name server will result in an answer. For protocol and
services resolution, the name or number was not found in the respective
database. WSAHOST_NOT_FOUND for details.

WSANO_ADDRESS (11004)* No address, look for MX record

The
requested name is valid, but does not have an Internet IP address at
the name server. This is not a temporary error. This means another type
of request to the name server will result in an answer. For protocol and
services resolution, the name or number was not found in the respective
database. WSAHOST_NOT_FOUND for details.

THE INFORMATION IN THIS ARTICLE APPLIES TO:

  • All Windows-based products

DISCUSSION

The table below lists some common Winsock error codes. Also refer to the Microsoft MSDN Library article «Winsock Error Codes» at http://msdn.microsoft.com/en-us/library/aa924071.aspx.

Return Code Value Description
WSAEINTR 10004 Interrupted function call. A blocking operation was interrupted by a call to WSACancelBlockingCall.
WSAEACCES 10013 Permission denied.
An attempt was made to access a socket in a way forbidden by its access permissions. An example is using a broadcast address for sendto without broadcast permission being set using setsockopt(SO_BROADCAST). Another possible reason for the WSAEACCES error is that when the bind function is called (on Windows NT 4 SP4 or later), another application, service, or kernel mode driver is bound to the same address with exclusive access. Such exclusive access is a new feature of Windows NT 4 SP4 and later, and is implemented by using the SO_EXCLUSIVEADDRUSE option.
WSAEFAULT 10014 Bad address.
The system detected an invalid pointer address in attempting to use a pointer argument of a call. This error occurs if an application passes an invalid pointer value, or if the length of the buffer is too small. For instance, if the length of an argument, which is a sockaddr structure, is smaller than the sizeof(sockaddr).
WSAEINVAL 10022 Invalid argument.
Some invalid argument was supplied (for example, specifying an invalid level to the setsockopt function). In some instances, it also refers to the current state of the socket—for instance, calling accept on a socket that is not listening.
WSAEMFILE 10024 Too many open files.
Too many open sockets. Each implementation may have a maximum number of socket handles available, either globally, per process, or per thread.
WSAEWOULDBLOCK 10035 Resource temporarily unavailable.
This error is returned from operations on non-blocking sockets that cannot be completed immediately, for example recv when no data is queued to be read from the socket. It is a nonfatal error, and the operation should be retried later. It is normal for WSAEWOULDBLOCK to be reported as the result from calling connect on a non-blocking SOCK_STREAM socket, since some time must elapse for the connection to be established.
WSAEINPROGRESS 10036 Operation now in progress.
A blocking operation is currently executing. Windows Sockets only allows a single blocking operation—per- task or thread—to be outstanding, and if any other function call is made (whether or not it references that or any other socket) the function fails with the WSAEINPROGRESS error.
WSAEALREADY 10037 Operation already in progress.
An operation was attempted on a non-blocking socket with an operation already in progress—that is, calling connect a second time on a non-blocking socket that is already connecting, or canceling an asynchronous request (WSAAsyncGetXbyY) that has already been canceled or completed.
WSAENOTSOCK 10038 Socket operation on nonsocket. An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid.
WSAEDESTADDRREQ 10039 Destination address required.
A required address was omitted from an operation on a socket. For example, this error is returned if sendto is called with the remote address of ADDR_ANY.
WSAEMSGSIZE 10040 Message too long.
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.
WSAEPROTOTYPE 10041 Protocol wrong type for socket.
A protocol was specified in the socket function call that does not support the semantics of the socket type requested. For example, the ARPA Internet UDP protocol cannot be specified with a socket type of SOCK_STREAM.
WSAENOPROTOOPT 10042 Bad protocol option.
An unknown, invalid or unsupported option or level was specified in a getsockopt or setsockopt call.
WSAEPROTONOSUPPORT 10043 Protocol not supported.
The requested protocol has not been configured into the system, or no implementation for it exists. For example, a socket call requests a SOCK_DGRAM socket, but specifies a stream protocol.
WSAESOCKTNOSUPPORT 10044 Socket type not supported.
The support for the specified socket type does not exist in this address family. For example, the optional type SOCK_RAW might be selected in a
socket call, and the implementation does not support SOCK_RAW sockets at all.
WSAEOPNOTSUPP 10045 Operation not supported.
The attempted operation is not supported for the type of object referenced. Usually this occurs when a socket descriptor to a socket that cannot support this operation is trying to accept a connection on a datagram socket.
WSAEPFNOSUPPORT 10046 Protocol family not supported.
The protocol family has not been configured into the system or no implementation for it exists. This message has a slightly different meaning from WSAEAFNOSUPPORT. However, it is interchangeable in most cases, and all Windows Sockets functions that return one of these messages also specify WSAEAFNOSUPPORT.
WSAEAFNOSUPPORT 10047 Address family not supported by protocol family.
An address incompatible with the requested protocol was used. All sockets are created with an associated address family (that is, AF_INET for Internet Protocols) and a generic protocol type (that is, SOCK_STREAM). This error is returned if an incorrect protocol is explicitly requested in the socket call, or if an address of the wrong family is used for a socket, for example, in sendto.
WSAEADDRINUSE 10048 Address already in use.
Typically, only one usage of each socket address (protocol/IP address/port) is permitted. This error occurs if an application attempts to bind a socket to an IP address/port that has already been used for an existing socket, or a socket that was not closed properly, or one that is still in the process of closing. For server applications that need to bind multiple sockets to the same port number, consider using setsockopt (SO_REUSEADDR). Client applications usually need not call bind at all— connect chooses an unused port automatically. When bind is called with a wildcard address (involving ADDR_ANY), a WSAEADDRINUSE error could be delayed until the specific address is committed. This could happen with a call to another function later, including connect, listen, WSAConnect, or WSAJoinLeaf.
WSAEADDRNOTAVAIL 10049 Cannot assign requested address.
The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0).
WSAENETDOWN 10050 Network is down.
A socket operation encountered a dead network. This could indicate a serious failure of the network system (that is, the protocol stack that the Windows Sockets DLL runs over), the network interface, or the local network itself.
WSAENETUNREACH 10051 Network is unreachable.
A socket operation was attempted to an unreachable network. This usually means the local software knows no route to reach the remote host.
WSAENETRESET 10052 Network dropped connection on reset.
The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress. It can also be returned by setsockopt if an attempt is made to set SO_KEEPALIVE on a connection that has already failed.
WSAECONNABORTED 10053 Software caused connection abort.
An established connection was aborted by the software in your host computer, possibly due to a data transmission time-out or protocol error.
WSAECONNRESET 10054

Connection reset by peer. An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET. For more information see GlobalSCAPE Knowledge Base Article #10235

WSAENOBUFS 10055

No buffer space available. An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. This error indicates a shortage of resources on your system. It can occur if you’re trying to run too many applications (of any kind) simultaneously on your machine. If this tends to occur after running certain applications for a while, it might be a symptom of an application that doesn’t return system resources (like memory) properly. It may also indicate you are not closing the applications properly. If it persists, exit Windows or reboot your machine to remedy the problem. Another possible solution is to increase the available virtual memory by increasing the size of the Windows paging file. For more information see GlobalSCAPE Knowledge Base Article
#10234

WSAEISCONN 10056 Socket is already connected.
A connect request was made on an already-connected socket. Some implementations also return this error if sendto is called on a connected SOCK_DGRAM socket (for SOCK_STREAM sockets, the to parameter in sendto is ignored) although other implementations treat this as a legal occurrence.
WSAENOTCONN 10057 Socket is not connected.
A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using sendto) no address was supplied. Any other type of operation might also return this error—for example, setsockopt setting SO_KEEPALIVE if the connection has been reset.
WSAESHUTDOWN 10058 Cannot send after socket shutdown.
A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call. By calling shutdown a partial close of a socket is requested, which is a signal that sending or receiving, or both have been discontinued.
WSAETIMEDOUT 10060

Connection timed out. A connection attempt failed because the connected party did not properly respond after a period of time, or the established connection failed because the connected host has failed to respond. For more information see GlobalSCAPE Knowledge Base Article
#10384.

WSAECONNREFUSED 10061

Connection refused.
No connection could be made because the target computer actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host—that is, one with no server application running. Sometimes a 10061 error is caused by either
a firewall or anti-virus software presence on the local computer or network
connection. Either one may be blocking the ports needed to make
a successful FTP connection to the server. For a regular FTP session, disable the firewall or anti-virus
software or configure it to allow CuteFTP to establish an FTP session
over ports 20 and 21. Consult the documentation or help file for
your specific firewall or antivirus software product for further instructions.
Usually, the manufacturer of the device or software has specific instructions
available on their website. If you continue to receive the same error after insuring ports 20 and
21 are open, contact the administrator of the server to which you are
trying to connect.

WSAEHOSTDOWN 10064 Host is down.
A socket operation failed because the destination host is down. A socket operation encountered a dead host. Networking activity on the local host has not been initiated. These conditions are more likely to be indicated by the error WSAETIMEDOUT.
WSAEHOSTUNREACH 10065 No route to host.
A socket operation was attempted to an unreachable host. See WSAENETUNREACH.
WSAEPROCLIM 10067 Too many processes.
A Windows Sockets implementation may have a limit on the number of applications that can use it simultaneously.WSAStartup may fail with this error if the limit has been reached.
WSASYSNOTREADY 10091 Network subsystem is unavailable. This error is returned by WSAStartup if the Windows Sockets implementation cannot function at this time because the underlying system it uses to provide network services is currently unavailable. Users should check:

  • That the appropriate Windows Sockets DLL file is in the current path.
  • That they are not trying to use more than one Windows Sockets implementation simultaneously. If there is more than one Winsock DLL on your system, be sure the first one in the path is appropriate for the network subsystem currently loaded.
  • The Windows Sockets implementation documentation to be sure all necessary components are currently installed and configured correctly.
WSAVERNOTSUPPORTED 192 Winsock.dll version out of range. The current Windows Sockets implementation does not support the Windows Sockets specification version requested by the application. Check that no old Windows Sockets DLL files are being accessed.
WSANOTINITIALISED 10093 Successful WSAStartup not yet performed. Either the application has not called WSAStartup or WSAStartup failed. The application may be accessing a socket that the current active task does not own (that is, trying to share a socket between tasks), or WSACleanup has been called too many times.
WSAEDISCON 10101 Graceful shutdown in progress.
Returned by WSARecv and WSARecvFrom to indicate that the remote party has initiated a graceful shutdown sequence.
WSATYPE_NOT_FOUND 10109 Class type not found.
The specified class was not found.
WSAHOST_NOT_FOUND 11001 Host not found.
No such host is known. The name is not an official host name or alias, or it cannot be found in the database(s) being queried. This error may also be returned for protocol and service queries, and means that the specified name could not be found in the relevant database.
WSATRY_AGAIN 11002 Nonauthoritative host not found. This is usually a temporary error during host name resolution and means that the local server did not receive a response from an authoritative server. A retry at some time later may be successful.
WSANO_RECOVERY 11003 This is a nonrecoverable error. This indicates that some sort of non-recoverable error occurred during a database lookup. This may be because the database files (for example, BSD-compatible HOSTS, SERVICES, or PROTOCOLS files) could not be found, or a DNS request was returned by the server with a severe error.
WSANO_DATA 11004 Valid name, no data record of requested type.
The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. The usual example for this is a host name-to-address translation attempt (using gethostbyname or WSAAsyncGetHostByName) which uses the DNS (Domain Name Server). An MX record is returned but no A record—indicating the host itself exists, but is not directly reachable.
WSA_INVALID_HANDLE OS Dependent Specified event object handle is invalid.
An application attempts to use an event object, but the specified handle is not valid.
WSA_INVALID_PARAMETER OS Dependent One or more parameters are invalid.
An application used a Windows Sockets function which directly maps to a Windows function. The Windows function is indicating a problem with one or more parameters.
WSA_IO_INCOMPLETE OS Dependent Overlapped I/O event object not in signaled state.
The application has tried to determine the status of an overlapped operation which is not yet completed. Applications that use WSAGetOverlappedResult (with the fWait flag set to FALSE) in a polling mode to determine when an overlapped operation has completed, get this error code until the operation is complete.
WSA_IO_PENDING OS Dependent Overlapped operations will complete later.
The application has initiated an overlapped operation that cannot be completed immediately. A completion indication will be given later when the operation has been completed.
WSA_NOT_ENOUGH_MEMORY OS Dependent Insufficient memory available.
An application used a Windows Sockets function that directly maps to a Windows function. The Windows function is indicating a lack of required memory resources.
WSA_OPERATION_ABORTED OS Dependent Overlapped operation aborted.
An overlapped operation was canceled due to the closure of the socket, or the execution of the SIO_FLUSH command in WSAIoctl.
WSAINVALIDPROCTABLE OS Dependent Invalid procedure table from service provider.
A service provider returned a bogus procedure table to Ws2_32.dll. (This is usually caused by one or more of the function pointers being null.)
WSAINVALIDPROVIDER OS Dependent Invalid service provider version number.
A service provider returned a version number other than 2.0.
WSAPROVIDERFAILEDINIT OS Dependent Unable to initialize a service provider.
Either a service provider’s DLL could not be loaded (LoadLibrary failed) or the provider’s WSPStartup/NSPStartup function failed.
WSASYSCALLFAILURE OS Dependent System call failure.
Generic error code, returned under various conditions.
Returned when a system call that should never fail does fail. For example, if a call to WaitForMultipleEvents fails or one of the registry functions fails trying to manipulate the protocol/namespace catalogs. Returned when a provider does not return SUCCESS and does not provide an extended error code. Can indicate a service provider implementation error.

Понравилась статья? Поделить с друзьями:
  • Winsock error 10060 mdaemon
  • Winscp network error connection refused
  • Winsock error 10060 exchange 2013
  • Winsock error 10054 mdaemon
  • Winscp file transfer error