Citrix ошибка сокета 10038

Skip to content

Call Us Today! +35316877185|info@rgb.ie

Managed IT Services, Managed IT Solutions and IT Support Logo

Managed IT Services, Managed IT Solutions and IT Support Logo

Search for:

Citrix Socket Error 10038

Home/IT/Citrix Socket Error 10038

Previous Next
  • View Larger Image

Citrix Socket Error 10038

“Unable to connect to the server. Contact your system administrator with the following error: Socket operation on non-socket (Socket Error 10038)”

The dreaded message when using Citrix Receiver.

Happens with Citrix Receiver 4.11 and 4.12 – quickest solution is to remove the current version of Citrix Receiver and install Citrix Receiver 4.9 ( available here: https://www.citrix.com/downloads/citrix-receiver/legacy-receiver-for-windows/receiver-for-windows-49LTSR.html )

I’ve also uploaded a copy here: https://www.rgb.ie/citrix_receiver_v4.9.exe


More information

In March 2018, Microsoft announced a newly discovered vulnerability in the CredSSP protocol, which is used by Remote Desktop Connection to authenticate your password or smart card using Network Level Authentication (NLA). The flaw could allow someone to capture your credentials if he has access to the traffic between your client computer and the target. The above 10038 error occurs if one system is updated and the other system is not.

Best to patch those remote terminals! 🙂

By Media Team|2018-09-14T09:19:40+00:00September 14th, 2018|IT|3 Comments

About the Author: Media Team

Media & PR Team for Really Good Business.

All enquiries can be sent to pr@rgb.ie

Related Posts

  • Operation Triangulation – iOS devices targeted with previously unknown malware

    Operation Triangulation – iOS devices targeted with previously unknown malware

  • Microsoft 365

    Microsoft 365

    Gallery

    Microsoft 365

  • Managed IT Service Solutions

    Managed IT Service Solutions

    Gallery

    Managed IT Service Solutions

  • Panasonic KX UT Series – Reboot on attended transfer with 3CX V18 in the cloud

    Panasonic KX UT Series – Reboot on attended transfer with 3CX V18 in the cloud

    Gallery

    Panasonic KX UT Series – Reboot on attended transfer with 3CX V18 in the cloud

  • Hosted Phone Solutions, VoIP and Microsoft 365 Integration – UPGRADE TODAY!

    Hosted Phone Solutions, VoIP and Microsoft 365 Integration – UPGRADE TODAY!

    Gallery

    Hosted Phone Solutions, VoIP and Microsoft 365 Integration – UPGRADE TODAY!


3 Comments

  1. ytdfghg
    February 11, 2020 at 8:26 am — Reply

    thank you its working
    you save me

  2. Utkarsh Gupta
    April 6, 2020 at 7:27 pm — Reply

    Hi,

    Perfect solution to the problem. Resolved my critical issue.

  3. Rakshith
    April 8, 2020 at 9:33 am — Reply

    Same the socket error 10038 reflects .. please help me .. wat is the proceger I need to do .

Leave A Comment Cancel reply

Comment

Δ

Go to Top

Новичок

Профиль
Группа: Участник
Сообщений: 12
Регистрация: 8.4.2006

Репутация: нет
Всего: нет

у меня не хватает сил уже с этим кодом короче:
tcpclient.cpp

Код

// tcpclient.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "winsock2.h"
#include "stdio.h"
#include "windows.h"
#include "string.h"
#include "stdlib.h"
#pragma comment(lib, "ws2_32.lib")

int main()//int argc, char* argv[])
{
    sockaddr_in* sock_in_=new sockaddr_in;
    SOCKET sd;
    int port=80;
    char buff[1024];
    char ip[20];
    ZeroMemory(&ip, sizeof(ip)); 
    ZeroMemory(sock_in_, sizeof(sock_in_));
    strcpy(ip,"172.16.0.2");

    if (WSAStartup(0x202,(WSADATA *)&buff[0]))
    {
      printf("WSAStart error %dn",WSAGetLastError());
      free(sock_in_);
      return -1;
    }

    if ((sd=socket(AF_INET, SOCK_STREAM,0))<=0)
    {
      printf("Socket() error %dn",WSAGetLastError());
      free(sock_in_);
      return -1;
    }
    else printf("%sn","socket was create successful");
    sock_in_->sin_family=AF_INET;
    sock_in_->sin_port=htons(port);
    if (inet_addr(ip)!=INADDR_NONE)
    sock_in_->sin_addr.s_addr=inet_addr(ip);
    else
    {
    printf("Invalid address %sn",ip);
    closesocket(sd);
    free(sock_in_);
    WSACleanup();
    return -1;
    }
    int con=0;
    if ((con=connect(sd, (sockaddr *)sock_in_, sizeof(sock_in_)))!=0)
    {
      printf("Connect error %dn",WSAGetLastError());
      free(sock_in_);
      return -1;
    }
    printf("%sn%s", "The connetion successfull set", ip);
    ZeroMemory(&buff, sizeof(buff));
    int nsize;
    while((nsize=recv(sd,&buff[0],sizeof(buff)-1,0))!=SOCKET_ERROR)
    {
        buff[nsize]=0;
        printf("S=>C:%s",buff);
        printf("S<=C:"); fgets(&buff[0],sizeof(buff)-1,stdin);
    }
    send(sd,&buff[0],nsize,0);
    free(sock_in_);
    return 0;
}

tcpserver.cpp

Код

/*---------------Simple tcp echo server-----------------------*/    
#include "stdafx.h"    
#include "Winsock2.h"    
#include "Windows.h"    
#include "Winbase.h"    
#include "stdio.h"    
#include "WINSOCK.H"    
#include "string.h"    
#pragma comment(lib, "ws2_32.lib")    
int main()    
{    
    int sd;    
    int bindw;    
    struct sockaddr_in addr_in_;                 
    struct sockaddr asd;    
    ZeroMemory(&asd, sizeof(asd));    
    char buff[1024];    
    if (WSAStartup(0x202,(WSADATA *)&buff[0]))    
    {    
      printf("WSAStart error %dn",WSAGetLastError());    
      return -1;    
    }    
    if (sd=socket(AF_INET, SOCK_STREAM , 0)>=0)         
        printf("%sn", "the socket is successfull create");         
    else    
    {    
        printf("Error bind %dn",WSAGetLastError());    
        closesocket(sd);    
        WSACleanup();    
        return -1;    
    }    
    ZeroMemory(&addr_in_, sizeof(addr_in_));                 
    addr_in_.sin_family=AF_INET;                             
    addr_in_.sin_addr.s_addr=inet_addr("172.16.3.10");    
    addr_in_.sin_port=htons(8025);//argv[2];    
    if (bindw=bind(sd, (struct sockaddr *) &addr_in_, sizeof(addr_in_)))    
    {    
      printf("Error bind %dn",WSAGetLastError());    
      closesocket(sd);    
      WSACleanup();    
      return -1;    
    }    
    if (listen(sd, 20))                                
    {    
        printf("Error bind %dn",WSAGetLastError());    
        closesocket(sd);    
        WSACleanup();    
    }    
    printf("waiting connection...n");    
    for (;;)                                          
    {    
        int socksd;                                         
        int size=sizeof(addr_in_);    
        socksd = accept(sd, (struct sockaddr*) &addr_in_, &size);    
        if (socksd>0)                                     
        {    
            char buffer[1024];    
            int nbytes;    
            do    
            {    
                nbytes=recv(socksd,buffer,sizeof(buffer),0);    
                if (nbytes>0)                                     
                    send(socksd, buffer, sizeof(buffer), 0);     
            }    
            while(nbytes>0 && strncmp("byer", buffer, 4)!=0);     
            closesocket(socksd);                             
        }    
        printf("Error bind %dn",WSAGetLastError());    
        closesocket(sd);    
        WSACleanup();    
        exit(1);    
    }    
    closesocket(sd);    
    WSACleanup();    
        return 0;    
}    
/*----------------------------------------End of Source-----------------------------------------*/

все компилируеться, когда запускаю клиента выдает
Connect error 10014
описание ошибки:
WSAEFAULT (10014) Bad address.

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

WinSock description: Same as Berkeley, and then some. Specifically, v1.1 WinSock spec notes that this error occurs if the length of the buffer is too small. For instance, if the length of a struct sockaddr is not equivalent to the sizeof(struct sockaddr). However, it also occurs when an application passes an invalid pointer value.

Developer suggestions: Always check the return value from a memory allocation to be sure it succeeded. Always be sure to allocate enough space.

WinSock functions: accept(), bind(), connect(), gethostname(), getpeername(), getsockname(), getsockopt(), recvfrom(), send(), sendto(), setsockopt() if buffer length is too small.

Additional functions: Any functions that takes a pointer as an input parameter: inet_addr(), inet_ntoa(), ioctlsocket(), gethostbyaddr(), gethostbyname(), getservbyname(), getservbyport(), WSAAsyncGetHostByName(), WSAAsyncGetHostByAddr(), WSAAsyncGetProtoByName(), WSAAsyncGetProtoByNumber, WSAAsyncGetServByName(), WSAAsyncGetServByPort(), WSASetBlockingHook()

когда пускаю сервер
error bind 10038
я ее описал в 1-м посте

Компилировал программу на двох компах- итог одинsmile

Загнал исходник который мне любезно предоставил уважаемый 040375 в VC++ 6.0 при компиляции выдало:
fatal error C1010: unexpected end of file while looking for precompiled header directive

Может я не тот проект создаю, или … может где-то ошибка на елементарном уровне(ДНК не предлагатьsmile)

Customers who viewed this article also viewed

CTX238472


{{tooltipText}}

Article
|


Configuration

|

{{likeCount}} found this helpful
|

Created:
{{articleFormattedCreatedDate}}

|
Modified:
{{articleFormattedModifiedDate}}

Applicable Products

  • XenDesktop 7.18
  • Citrix Virtual Apps and Desktops

Symptoms or Error

After enabling SSL in Linux VDA, Citrix Workspace app fails to connect and displays the error «Unable to connect to the server. Contact your system administrator with the following error: Socket operation on non-socket (Socket Error 10038)»

Unable to connect to the server. Contact your system administrator with the following error: Socket operation on non-socket (Socket Error 10038)

There is an entry in hdx.log:

2018-09-26 16:16:54.240 <P30103> citrix-ctxhdx: TdCgpRead: Received an unknown packet on Port 443
2018-09-26 16:16:54.240 <P30103> citrix-ctxhdx: TdCgpRead: 0x16  0x03  0x01  0x00
2018-09-26 16:16:54.240 <P30103> citrix-ctxhdx: TdCgpRead: Bad State!! IcaState is 671, pTd is (nil)
2018-09-26 16:16:54.240 <P30103> citrix-ctxhdx: TdHandshakeThread: Handshake failed: CONNECTION_ABORTED, td state: 671

Solution

Ensure that the server certificate provided to
enable_vdassl.sh contains:

  • The Server Certificate
  • The Unencrypted Private Key
  • The Intermediate Certificates (if applicable)

For example:

# cat /etc/xdl/.sslkeystore/certs/server-certificate.pem
-----BEGIN CERTIFICATE-----
MIIFtDCCBJygAwIBAgITagAAAC/tYAov1PR7pwABAAAALzANBgkqhkiG9w0BAQsF
…
aC5qLjOGOe0iwqJgn4FTRvnIF59YKPa9
-----END CERTIFICATE-----
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDBZarRkNJodsHU
…
GrYPz8Z8OU5FN58vEny9a6XF
-----END PRIVATE KEY-----

Problem Cause

There can be a number of causes of this issue, some of which are:

1. Encrypted Private Key

The server certificate contains an encrypted private key:

/etc/xdl/.sslkeystore/certs/
server-certificate.pem

-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIj6gr8yDIglQCAggA
…
lak=
-----END ENCRYPTED PRIVATE KEY-----
…

This will result in the additional dialogue from Desktop Viewer ‘The connection to »
Delivery Group Name» failed with status (Unknown client error 0).’:

Unknown client error 0

2. No Private Key

The server certificate contains no private key.

This will result in the additional dialogue from Desktop Viewer ‘The connection to »
Delivery Group Name» failed with status (Unknown client error 1110).’:

The connection to "Delivery Group Name" failed with status (Unknown client error 1110).

When
enable_vdassl.sh was run there would have been an error message included in the output:

Verifying the specified certificate /etc/xdl/.sslkeystore/certs/server-certificate.pem...
unable to load Private Key
140270488938384:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:707:Expecting: ANY PRIVATE KEY


Was this page helpful?












Thank you!





Sorry to hear that.


Please provide
{{ feedbackPageLabel.toLowerCase() }} feedback.


Please provide article feedback


Feel free to give us additional feedback!


What can we do to improve this page?

Email

Email address is required

Failed
to load featured products content, Please

try again

.

Can’t connect to Citrix Xenapp server?

  • Ahmir
  • Comments Off on Can’t connect to Citrix Xenapp server?

Can’t connect to Citrix Xenapp server?

The flaw could allow someone to capture your credentials if he has access to the traffic between your client computer and the target. The above 10038 error occurs if one system is updated and the other system is not. Best to patch those remote terminals!

Updated September 2023: Stop error messages and fix your computer problem with this tool. Get it now at this link

  1. Download and install the software.
  2. It will scan your computer for problems.
  3. The tool will then fix the issues that were found.

How do I fix error 10038?

Error 10038 means the socket is invalid. This error almost always occurs when installing a third party social game provider over TCP/IP. This can be checked using the appropriate utility called sporder.exe. If TCP/IP has not been enabled, this error is generated. Use sporder.exe to start TCP/IP in addition to restarting the computer.

How do I fix SSL error 4 in Citrix?

On the client device, open the Control Panel.
Uninstall the current version of Citrix Receiver:
Download the old version of Citrix Receiver.
Close all web browsers.
By default, perform a basic installation of Citrix Receiver (for example, 4.6).
Launch Citrix Storefront and test it.

Make sure you have the latest version of Workspace installed. Make sure the Ticket Secure Authority (STA) on the Storefront and Citrix Gateway match, and make sure the order of the STAs matches. Make sure there are no trust issues with your lifetime certificate. Make sure our own certificate chain is complete.

What is socket operation on non socket error?

The “Socket operation on a non-socket” error usually means that for some reason Windows has overloaded the entire TCP-IP stack, resulting in a socket channel (which is configured to communicate with the Internet).

How to resolve socket error 10038 citrix?

Operation “Socket on Non-Socket (Socket Error 10038)”. Cloud controller launch issue resolved by updating the Citrix client to the latest version.

  1. Problem. The user authenticates to the “Citrix Storefront” Controller-on-Cloud.
  2. Symptom. Citrix receiver.
  3. Reason.
  4. Solve the problem.

Updated: September 2023

Are you grappling with persistent PC problems? We have a solution for you. Introducing our all-in-one Windows utility software designed to diagnose and address various computer issues. This software not only helps you rectify existing problems but also safeguards your system from potential threats such as malware and hardware failures, while significantly enhancing the overall performance of your device.

  • Step 1 : Install PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista).
  • Step 2 : Click Start Scan to find out what issues are causing PC problems.
  • Step 3 : Click on Repair All to correct all issues.

download

What is socket Error 10038 Citrix?

The error could allow someone to obtain credentials if they have access to the traffic between your client device and the target device. The biggest error 10038 occurs when one system is up to date and the other is not.

What is Socket Error 10038 Citrix?

The bug could allow someone to capture your primary credentials if they have direct access to the traffic between your computer’s buyer and the target. The previously mentioned error 10038 occurs when one system updates normally and the other system fails to update.

How to resolve socket error 10038?

Error “Socket operations over non-socket (socket error 10038)” when starting Controller-on-Cloud, update fixed by latest Citrix client process

  1. Problem. The user authenticates to the “Citrix Storefront” Controller-on-Cloud.
  2. Symptom. Citrix receiver.
  3. Reason.
  4. Solve the problem.

RECOMMENATION: Click here for help with Windows errors.

I’m Ahmir, a freelance writer and editor who specializes in technology and business. My work has been featured on many of the most popular tech blogs and websites for more than 10 years. Efficient-soft.com is where I regularly contribute to my writings about the latest tech trends. Apart from my writing, I am also a certified project manager professional (PMP).

    msm.ru

    Нравится ресурс?

    Помоги проекту!

    [!] Как относитесь к модерированию на этом форуме? Выскажите свое мнение здесь

    >
    Сокет и ошибка 10038

    • Подписаться на тему
    • Сообщить другу
    • Скачать/распечатать тему



    Сообщ.
    #1

    ,

      Full Member

      ***

      Рейтинг (т): 7

      День добрый.
      Вообщем история такая. Есть два приложения — клиент и сервер. Вообщем всё классически. Трабл такого толка — когда клиент закрывает соединение на сервере сразу же после обработчика события OnClientDisconnect вываливается ошибка:
      Windows socket error: Сделана попытка выполнить операцию на объекте, не являющемся сокетом (10038), on API ‘closesocket’
      При чём вываливается сразу в двух экземплярах. Код огромный — выкладывать его тут смысла нет. Вероятно на момент закрытия сокета он уже не существует исходя из толкования ошибки. С другой стороны он передаётся в обработчик, так что существовать должен, в дебаге видно даже его настройки. Проверено, что никакой другой кусок кода в этот момент не пытается работать с этим сокетом. Мысли есть?

      Добавлено
      Прошерстил гугль. Указанная ошибка встречается всего два раза. Оба пальцем в небо.


      trainer



      Сообщ.
      #2

      ,

        Цитата DrMort @

        С другой стороны он передаётся в обработчик, так что существовать должен, в дебаге видно даже его настройки.

        Какое отношение обработчик события в компоненте VCL имеет к системному объекту? Системный объект видимо удален, экземпляр компонента остался. Любые попытки использовать системный объект через компонент будут давать ошибки(если компонент не будет самостоятельно пересоздавать системный объект, а он в данном случае не будет пересоздавать).
        Ну и исходник покажи.
        Хотя вообще-то странно. Не должен на сервере закрываться сокет, находящийся в режиме прослушивания.

        Эээ… Ты закрываешь сокет в OnClientDisconnect?

        Сообщение отредактировано: trainer


        Akme



        Сообщ.
        #3

        ,

          Указатели какие-нить не перезаписываешь? Что в дисконекте делается? Один поток в программе или нет?


          DrMort



          Сообщ.
          #4

          ,

            Full Member

            ***

            Рейтинг (т): 7

            Никаких указателей не перезаписываю. В дисконнекте меняются просто флажки соединений — то есть в массив проставляется что васе пупкину больше ничего отсылать не стоит — мы его потеряли. Программа однопоточная — никаких специальных замутов наподобии CreateThread не делал. Сейчас попробую привести некий кусок кода

            ExpandedWrap disabled

              void __fastcall TForm1::ServerSocket1ClientDisconnect(TObject *Sender,

                    TCustomWinSocket *Socket)

              {

                      int CurrentLocation=0,counter=0;

                      int NumSym=0,i,o;

                      AnsiString CurrName=»»;

                      for(i=0;i<MaxConnections;i++) //MaxConnections — константа содержащая максимальное число соединений с клиентами

                              {

                              if((Connections[i].Socket==Socket) && (Connections[i].Connected==true))

                                      {

                                      if(Connections[i].Login!=»»)

                                              {

                                              Memo1->Lines->Add(Connections[i].Login+» disconnected»);

                                              CurrName=Connections[i].Login;

                                              CurrName=CurrName.Trim();

                                              }

                                      else

                                              Memo1->Lines->Add(«Non logined client disconnected»);

                                      Connections[i].Connected=false;

                                      Connections[i].Autorize=false;

                                      for(o=0;o<BufferLength;o++)

                                              Connections[i].SendBuffer[o]=»»;

                                      Connections[i].BufferCounter=0;

                                      Connections[i].Idle=0;

                                      Form1->StatisticMonitor->Values[«CurrentConnection»]=IntToStr(StrToInt(Form1->StatisticMonitor->Values[«CurrentConnection»])-1);

                                      break;

                                      };

                              };

              }

            Connections[] — массив структур содержащий сведения о соединениях, В нём есть поле Socket значение которого заполняется при установке связи.

            Но все это описание зряшное, потомучто содержимое обработчика можно полностью убрать и ничего не изменится — проверено. Так же пробовал в начале каждой процедуры имеющейся в проекте ставить стоп поинт и отслеживать что ещё происходит в момент когда клиент обрывает связь. Так вот ничего не происходит — сразу срабатывает OnClientDisconnect. Сразу после его срабатывания вылетает подряд две ошибки. Так что вероятнее всего дело не в исходном коде, а в настройках/багах проекта/операционной системы/среды программирования. Чуть позже попробую на чистом компе возвести SQL сервер и запустить серверное приложение. Если ошибка исчезнет — всему виной срада/операционка.


            leo



            Сообщ.
            #5

            ,

              Цитата DrMort @

              В дисконнекте меняются просто флажки соединений — то есть в массив проставляется что васе пупкину больше ничего отсылать не стоит — мы его потеряли

              И что разорванное соединение так и остается навсегда в массиве Connections или удаляется ?
              Следует иметь в виду, что клиентский сокет закрывается и удаляется автоматически после вызова OnClientDisconnect. Поэтому ни закрывать, ни освобождать самому Connections[i].Socket в OnClientDisconnect (и тем более до или после) нельзя, ну и ес-но нельзя обращаться к инвалидному указателю Connections[i].Socket после OnClientDisconnect

              Цитата DrMort @

              Программа однопоточная — никаких специальных замутов наподобии CreateThread не делал

              Чтобы прога стало многопоточной достаточно установить «замут» ServerType:=stThreadBlocking ;)


              DrMort



              Сообщ.
              #6

              ,

                Full Member

                ***

                Рейтинг (т): 7

                Разорваное соединение остаётся, но никогда не используется. По прошествии некоторого времени по таймеру выбираются все разорваные соединения и удаляются из массива.
                Ещё раз — в OnClientDisconnect сокет вообще не трогается — процедура обработчика вообще может быть пустой. И тем более к указателю Connections[i].Socket никто не обращается. Дело все таки несколько в другом.
                Про ServerType:=stThreadBlocking мне тоже известно.
                Попробовал запустить сервер на другом компе где поднят SQL. Запустилась и нормально работает. Переставил винду. У меня по прежнему глючит. Возможно проблема с каким то драйвером. Мучаю дальше.


                Oleg2004



                Сообщ.
                #7

                ,

                  Есть такая ситуация — что в режиме дебага многие среды при тестирование клиент-серверных приложений глючат.
                  Поэтому я всегда рекомендую делать отладочные релизы и запускать как самостоятельные программы вне среды программирования……


                  DrMort



                  Сообщ.
                  #8

                  ,

                    Full Member

                    ***

                    Рейтинг (т): 7

                    Вне среды все равно глючит. Переставил винду — все та же ошибка. Завтра попробую переставить винду и не ставить ни одного драйвера.


                    DrMort



                    Сообщ.
                    #9

                    ,

                      Full Member

                      ***

                      Рейтинг (т): 7

                      Переставил винду поверх старой. Глючит. Форматнул винт — нормально. С дровами тоже нормально. Похоже что-то было с операционкой, может какие нить последствия лечения вирусни. Всем спасибо за мысли.

                      0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)

                      0 пользователей:

                      • Предыдущая тема
                      • Borland C++ Builder/Turbo C++ Explorer
                      • Следующая тема

                      Рейтинг@Mail.ru

                      [ Script execution time: 0,0272 ]   [ 16 queries used ]   [ Generated: 21.09.23, 09:33 GMT ]  

                      Понравилась статья? Поделить с друзьями:

                      Интересное по теме:

                    • Chevrolet круз ошибка 89
                    • Citrix ошибка ssl70
                    • Cinema 4d prorender неизвестная внутренняя ошибка
                    • Cities skylines ошибка при загрузке карты
                    • Citrix xenapp ошибка драйвера протокола

                    • 0 0 голоса
                      Рейтинг статьи
                      Подписаться
                      Уведомить о
                      guest

                      0 комментариев
                      Старые
                      Новые Популярные
                      Межтекстовые Отзывы
                      Посмотреть все комментарии