13 Replies Latest reply on Jun 14, 2016 2:30 PM by aanjan RSS
    aherger Explorer

    Failure to Connect SteamSensor to an External Server

    Hello,

    I am currently following the SteamSensor example for Thingworx and have hit a problem.  I was successfully able to connect to a local instance of Thingworx as well as one located on my network.  However, when I try to connect to an external server, the connection seems to time out.

     

    I am currently working with the C SDK, and am unable to tell if this is a problem with the server or the agent.  Below I have posted the output from the SteamSensor program.  I should note that the version of the Thingworx instance is 6.0.2, and that I am trying to connect on port 443.  Any ideas on the cause of this issue would be appreciated.

     

    Thank You.

     

    [FORCE] 2016-06-07 08:18:15,354: Starting up

    [DEBUG] 2016-06-07 08:18:15,355: twWs_Create: Initializing Websocket Client for

    “<PTC Hosted Thingworx instance>”

    [DEBUG] 2016-06-07 08:18:15,355: twTlsClient_Create: Initializing TLS Client

    [DEBUG] 2016-06-07 08:18:15,456: twApi_Initialize: Websocket Established after 0

    tries

    [DEBUG] 2016-06-07 08:18:15,457: subscribedPropsMgr_Initialize: Initializing sub

    scribed properties manager

    [DEBUG] 2016-06-07 08:18:22,129: twTlsClient_Reconnect: Re-establishing SSL cont

    ext

    [DEBUG] 2016-06-07 08:18:22,135: twTlsClient_Connect: Connecting to server

    [ERROR] 2016-06-07 08:18:32,137: twWs_Connect: Error trying to connect

    [DEBUG] 2016-06-07 08:18:32,137: twTlsClient_Reconnect: Re-establishing SSL cont

    ext

    [DEBUG] 2016-06-07 08:18:32,156: twTlsClient_Connect: Connecting to server

    [DEBUG] 2016-06-07 08:18:37,157: twTlsClient_Reconnect: Re-establishing SSL cont

    ext

    [DEBUG] 2016-06-07 08:18:37,164: twTlsClient_Connect: Connecting to server

    [ERROR] 2016-06-07 08:18:47,173: twWs_Connect: Error trying to connect

    [DEBUG] 2016-06-07 08:18:47,173: twTlsClient_Reconnect: Re-establishing SSL cont

    ext

    [DEBUG] 2016-06-07 08:18:47,192: twTlsClient_Connect: Connecting to server

    [DEBUG] 2016-06-07 08:18:52,198: twTlsClient_Reconnect: Re-establishing SSL cont

    ext

    [DEBUG] 2016-06-07 08:18:52,209: twTlsClient_Connect: Connecting to server

    [ERROR] 2016-06-07 08:19:02,212: twWs_Connect: Error trying to connect

    [DEBUG] 2016-06-07 08:19:02,212: twTlsClient_Reconnect: Re-establishing SSL cont

    ext

    [DEBUG] 2016-06-07 08:19:02,222: twTlsClient_Connect: Connecting to server

    [ERROR] 2016-06-07 08:19:07,224: twApi_Connect: Max number of connect retries: 3

    , has been reached

    [ERROR] 2016-06-07 08:19:07,224: main: Server connection failed after 3 attempts

    .  Error Code: 201