Trouble connecting external client with server via KAREL sockets

  • Hello,

    I'm attempting to use ROBOGUIDE with a CRX-20iA/L controller to run a server that connects with an external Python client.

    I'm unable to get an external client to connect with the server; the client times out. I suspect the issue is that the client is using the wrong host or network / subnet configuration.

    • Create a new cell
    • Setup basic teach pendant configuration
    • Create / build KARAL socket script
    • Setup server tag as specified by manually
    • Run the KARAL program
    • Attempt to connect with Python client

    The following .gif outlines what I did from start to finish, I expect the ROBOGUIDE user menu to go beyond the connecting.. line


    Error code from client side

    Traceback (most recent call last):  File "C:\Users\shawn\OneDrive\Desktop\ur_client\", line 14, in <module>    main()  File "C:\Users\shawn\OneDrive\Desktop\ur_client\", line 5, in main    client_socket.connect(('', 12345))
    TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
  • Place your Ad here!
  • MOM

    Approved the thread.
    • Helpful

    This problem has been resolved.

    The issue appears to have been related to the following lines from the initial post:

    MSG_CONNECT('S3', status)
    -- ...
    SET_VAR(entry, '*SYSTEM*', '$HOSTS_CFG[3].$SERVER_PORT', 12345, status)
    - ...

    The following script worked:

    Additionally, the client's host needed to be changed to

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Register a new account
Sign in
Already have an account? Sign in here.
Sign in Now

Advertising from our partners