Skip to main content
1-Visitor
September 7, 2018
Solved

Thingworx Native Interface error "could not establish a websocket connection"

  • September 7, 2018
  • 1 reply
  • 8974 views

Hi Developers,

 

I'm trying to connect TWX industrial connectivity(8.3) to my composer(8.3). The composer is running in an image and the TWX industrial connectivity in my local. From my controls advisor page i got the instructions for the Thingworx properties in the kepware (PFA the instruction screenshot). The port which is configured for twx is 443 but the port in the instruction is showing blank. The property editor of Kepware is not accepting a null value for port, so i have given 443. Everything else i had done as per the instruction file.

 

Its not able to connect to my twx. 


Its giving the following error :

Connection to ThingWorx failed. | Platform = xxx.xxx.xx.xxx:443/Thingworx/WS, error = could not establish a websocket connection.

 

I had restarted the WSCommunication subsytem in TWX but still not able to get it working. 

 

Regards,

Saran

Best answer by slangley

Hi @SaranKarthick.

 

You will need to obtain a certificate and configure your site.  You can designate the port to be used for SSL (443 is the default) in your config.

 

Please refer to these articles for more information:

 

Regards.

 

--Sharon

 

If my response has answered your question, please mark as Accepted Solution, for the benefit of others who may have the same question.

1 reply

16-Pearl
September 7, 2018

Greetings @SaranKarthick,

 

As you mentioned that you have composer in the image and TWX industrial connectivity on the local. Can you access your ThingWorx Composer from local browser.

If yes, you need to give the same URL and port number in host and port of the Project Properties of Industrial Connectivity.

 

Thanks,

Himanshu

1-Visitor
September 7, 2018

Hi @hchanana,

 

I am using the correct URL as mentioned in the Instructions. The port is missing in the instructions. But i had give the proper port too in the properties.

 

Regards,

Saran

 

1-Visitor
September 10, 2018

Hi @hchanana,

 

I had changed the port to 8080 and tried. The instruction was showing the 8080 port correctly and i was able to establish the connection. Only it doesn't work with 443. Any idea where i might be going wrong.

 

Regards,

Saran