Skip to main content
1-Visitor
October 25, 2020
Solved

Thingworx Academic Simulator with hosted server (PTC Cloud trial)

  • October 25, 2020
  • 2 replies
  • 1387 views

Hi, 

I signed up for the hosted server trial - have about 27 days to go.  I'm able to connect through the REST API and postman to my server, however Thingworx Academic Simulator doesn't seem to connect - I get the messages(after a 10 second timeout) - 'Unable to connect, check your port' - looked at the code for Thingworx Academic Simulator (which is an electron/node.js app) and it seems that the interface is just sending a REST API call to /Thingworx/Things before issuing that message (which seems to be the default one). Can't understand why the TAS isn't working when the REST API does in Postman with 200 OK.  Any idea what's going on?  Have checked my firewall etc and nothing is blocking.

 

My settings:

Server URL: pp-2010211547rh.devportal.ptc.io

Application Key (used a member with privileges on things as well as administrator)

Port: 8443 (or 443 - both work with REST API)

Secured Server checked on

Best answer by jman87

@Assembly 

Based on your description, actually you have already checked many points.

What's your thingworx version? As I know

  • ThingWorx Academic Simulator will only connect to hosted ThingWorx instance provided in the training instruction
  • Simulator will not connect to on premise ThingWorx instance

 

Maybe you already tried below but provide them for your reference:

  • Could you try to use IP address of machine instead of localhost in URL to connect to ThingWorx Academic Simulator? 
  • When you try to connect ThingWorx Academic Simulator to Thingworx - The server url supplied should not contain http:// or https:// or a port, it is internally added by the "Secured Server" checkbox. E.g. provide localhost instead of https://localhost:123 
  • Put server url as hosted ThingWorx url mentioned in the training instruction
  • Give an application key created for a user in hosted ThingWorx instance

In addition, I noticed a similar issue similar with yours:

https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-connect-to-the-Thingworx-academic-simulator/td-p/660099?posno=2&q=%22Unable%20to%20connect,%20check%20your%20port%22&source=search

 

Best Wishes!

Teresa

 

2 replies

jman8715-MoonstoneAnswer
15-Moonstone
October 26, 2020

@Assembly 

Based on your description, actually you have already checked many points.

What's your thingworx version? As I know

  • ThingWorx Academic Simulator will only connect to hosted ThingWorx instance provided in the training instruction
  • Simulator will not connect to on premise ThingWorx instance

 

Maybe you already tried below but provide them for your reference:

  • Could you try to use IP address of machine instead of localhost in URL to connect to ThingWorx Academic Simulator? 
  • When you try to connect ThingWorx Academic Simulator to Thingworx - The server url supplied should not contain http:// or https:// or a port, it is internally added by the "Secured Server" checkbox. E.g. provide localhost instead of https://localhost:123 
  • Put server url as hosted ThingWorx url mentioned in the training instruction
  • Give an application key created for a user in hosted ThingWorx instance

In addition, I noticed a similar issue similar with yours:

https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-connect-to-the-Thingworx-academic-simulator/td-p/660099?posno=2&q=%22Unable%20to%20connect,%20check%20your%20port%22&source=search

 

Best Wishes!

Teresa

 

Community Manager
November 9, 2020

Hi @Assembly.

 

If the previous response helped you to find a solution, please mark it as the Accepted Solution for the benefit of others with the same issue.

 

Regards.

 

--Sharon