'Unable to Setup\Connect to AWS Lightsail TCP Server

I have created a rust tcp server framework. (https://github.com/HasinZaman/SingleThreadServer)

The framework works fine without any issue on my local machine; and on the localhost & private network on the aws lighsail instance.

The current tcp listener on the instance tries to bind to "0.0.0.0:80"

However, I am unable to connect to the webserver using the public Ip address on port 80.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source