Self hosted server by Amazon with thinger, device disconnected

Hi there

We are building an IoT project with thinger, all tests were done with a personal account in thinger.

However, the company has a self-hosted server at Amazon with thinger, trying to connect the company server and device shown disconnect.

Have searched the similar topics others posted, added
#define DEBUG
#define THINGER_SERVER " //domain & IP all tested// "
into the code, codes uploading successfully but still disconnecting.

Does anyone have an idea how to fix that problem?

Regards

Are you using Arduino code or a Linux client?

Do you see any ports open with nmap? (443, 25200, 25202)

How is the security group setup up for the ec2 instance in the aws console?