Actix_Web with Amazon Lightsail

Hi guys,
I wonder if you could please help resolve this issue.

When I deploy my rust code to AWS Lightsail, it throws the following error in the logs and then deployment fails:

"At main function:
[9/Jul/2022:10:35:56] Error: Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" }"

In my rust code I have mentioned my AWS container address inside .bind(HERE) so I'm not sure why I'm still getting this error. Please help.

AWS Container (see Public domain):

Rust code:

Error log on AWS:
image

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.