I’ve implemented a simple echo server using this tutorial
After this, I installed it on a remote computer (aws server, the target port is open in the security group) and tried to connect to it via internet.
The server does not respond (times out).
I’ve tried adding exception to the firewall or even disabling the firewall on the target computer, without any effect.
I’ve also tried connecting to the software which runs on the target computer, and that works fine.
What could be the cause of this behavior?
The server is bound to 127.0.0.1, so it won’t accept connections from outside the local host. Bind it to 0.0.0.0 instead.