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
asked 3 months ago86 views
1 Answer
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
answered 3 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions