Self hosted in aws connection problem

HELLO, I CREATE VIRTUAL SERVER IN AWS (EC2) AND ACCESS TO IT VIA BROWSER
BUT WHEN ADD DEVICE (ESP32) AND DEFINE THE SERVER
#define THINGER_SERVER "—.---.—.---"
IT SAY DEVICE NOT CONNECTED , PLZ HELP ME

Please, enable the debug in the Arduino Code. What ports did you opened in your EC2 instance?

i solve it , problem in groupsecurity of EC2 instance