Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Can Multiple SDK instance be bound to TW server with separate Entities.
I am binding virtual thing with separate remote things on TW server. But as soon as I try to bind the second instance of SDK, I get the following error
Solved! Go to Solution.
Hi,
Thanks for the response.
I was not able to determine whether this is an issue regarding ports being bound multiple times.
But I was able to solve the issue, by making each endpoint name unique
String endPoint = "EP_" + macID;//macId was determined ealier in the code config.setName(endPoint);
Since mac id for each edge device would be unique, in this manner we can make each endpoint unique.
Hello,
Can you also provide the information in the server log (Application Log) for this timestamp?
From the error, which refers to binding, I assume that there is a port issue and the configuration has to be changed so each SDK instance needs to use a different port, it appears that the port is kept per instance and rebinding throws this error.
Regards,
Pascal
Hello,
Just checking back on this, was the advice that it's related to ports being bound multiple times helpful in finding the cause of the problem? If not, I can have a look at the logs to determine which ports are double bound. Otherwise we could mark the advice that it's caused by multiple binding of ports as the accepted answer to benefit others that might have the same problem.
Regards,
Pascal
Hi,
Thanks for the response.
I was not able to determine whether this is an issue regarding ports being bound multiple times.
But I was able to solve the issue, by making each endpoint name unique
String endPoint = "EP_" + macID;//macId was determined ealier in the code config.setName(endPoint);
Since mac id for each edge device would be unique, in this manner we can make each endpoint unique.