My lightsail static IP address times out

0

Hello everyone. I have a lightsail instance and have created a couple of container services in it. I have a Flask app deployed to it. When I use the domain name in the browser, it can resolve it and show the content, but when I use the static IP address that I have created, it times out. Here's the address: https://flask-service.0ejbf0u31rfnm.us-east-2.cs.amazonlightsail.com which works just fine.

Thanks. Joe

  • Please clarify why do you mention the static IP address? container services are ready to receive HTTPS traffic if you have a container service created and configured with a public endpoint. Which you have done.

Joe
已提问 3 个月前98 查看次数
1 回答
0

It seems like your Flask application is only accessible through the domain name and not the static IP address. Here are some things you can check to troubleshoot the issue.

Route Configuration: Double-check your Flask app's route configuration. Make sure the routes are defined to handle requests coming in on any IP address, not just the domain name.

Security Groups: AWS Lightsail uses security groups to control inbound and outbound traffic. Verify that the security group associated with your instance allows traffic on the port your Flask app is running on (usually port 5000) for both the domain name and the static IP address.

By checking these points, you should be able to identify the reason why the static IP address isn't working and get your Flask app accessible through both the domain name and the static IP.

profile picture
已回答 20 天前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则