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일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠