Skip to main content
1-Visitor
January 18, 2021
Solved

Kepware unable to connect TWx 8.5

  • January 18, 2021
  • 1 reply
  • 7136 views

Greetings,

as per title, I am unable to connect a Kepware server to a cloud instance of TWx. I've been able to connect multiple other servers, so the issue must be on this machine.

I configured the Project->Thingworx tab like I always do, after creating an industrial connection via ManApps and following the relative instructions, but I always get this error:

 

"Error ThingWorx Native Interface Connection to ThingWorx failed. | Platform = danieli-dev.cloud.thingworx.com:443/Thingworx/WS, error = could not establish a websocket connection."

 

I've tried disabling encryption and using the 8080 port, which results in this error:

 

"Connection to ThingWorx failed. | Platform = danieli-dev.cloud.thingworx.com:8080/Thingworx/WS, error = could not initialize a secure socket connection."

 

The machine which is running Kepware is still running Windows 7 and in order to install and run Kewpare I had to follow this article (CS321323) to install the required certificates, could my issue be related to this?

 

Thank you for the support.

Best answer by aiGreek

With the help of the support we've got to the cause of the problem, which was... a firewall.

I feel kinda dumb as I didn't bother to check before, but my colleagues assured me that the device wasn't blocked by any sort of firewall and it clearly wasn't the case.

Thank you all for the support and sorry for having wasted your time with my (non)issue.

1 reply

5-Regular Member
January 18, 2021

Hi @aiGreek , Try using the ip address instead of the domain name of the server . I see you have tried with 8080 and 443 port . Does thingworx runing on ssl?

aiGreek1-VisitorAuthor
1-Visitor
January 18, 2021

The Thingworx instance is in the cloud, does it have a static IP address?

I don't know if TWx is running on SSL, but all the other Kepwares I configured use port 443 and had no issues and are currently communicating with the platform.

16-Pearl
January 18, 2021

Hi @anarwal,
This Cloud instance is running on https (port 443) so you will need to configure the ThingWorx certificate in KEPServer to allow for the connection. Have you tried downloading the root certificate from ThingWorx and setting it up in the KEPServerEX Settings as per Configuring KEPServerEX/ThingWorx Industrial Connectivity to connect to SSL/TLS enabled ThingWorx Platform ?