Technical Tip: Interpreting WSAGetLastError() in FortiClient Debug log
Description
This article describes how to interpret 'WSAGetLastError()' messages sometimes observed.
Solution
FortiClients can sometimes have connection issues with SSLVPN.
This sometimes includes error messages as follows:
WSAGetLastError():2745, for example, is the equivalent of error code 10053.
A list of error codes can be found here:
https://docs.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
The above FortiClient error 2745 translates to decimal value 10053, meaning:
WSAECONNABORTED – Software caused connection abort.
An established connection was aborted by the software in the host computer, possibly due to a data transmission time-put or protocol error.
Notes:
Codes can be converted from hexadecimal to decimal values here:
https://www.rapidtables.com/convert/number/hex-to-decimal.html
This article describes how to interpret 'WSAGetLastError()' messages sometimes observed.
Solution
FortiClients can sometimes have connection issues with SSLVPN.
This sometimes includes error messages as follows:
Error VPN FortiSslvpn: 2148: error: poll_send_ssl -> WSAGetLastError():2745, try:1These errors are Windows Socket event errors, expressed in hexadeximal format.
Error VPN FortiSslvpn: 10908: error: poll_recv_ssl -> WSAGetLastError():2746
WSAGetLastError():2745, for example, is the equivalent of error code 10053.
A list of error codes can be found here:
https://docs.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
The above FortiClient error 2745 translates to decimal value 10053, meaning:
WSAECONNABORTED – Software caused connection abort.
An established connection was aborted by the software in the host computer, possibly due to a data transmission time-put or protocol error.
Notes:
Codes can be converted from hexadecimal to decimal values here:
https://www.rapidtables.com/convert/number/hex-to-decimal.html
