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日前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ