How can I connect to a headless server on EC2 with my local machine?

Hello!

I've managed to setup headless server and it works great on local network (I can connect to it, it responds well and etc). Unfortunately, once I've publish Linux build on EC2, launch it successfully (I can see from logs that it's connected and scene is launched) and then try to connect from my computer to the headless server - I can't.

The main difference in logs, that it resolve with different EndPoint. Maybe someone had similar issues and could point right direction?


P.s. In AWS EC2, I've setup Inbound and Outbound rules several times, making them very broad and then following some other examples (specified some ports and etc), though nothing have had any impact.