How to get a fixed IP (pingable) for Streamlit app hosted on AWS Lightsail?

0

Hi,

I have my streamlit app hosted and running on AWS Lightsail. My app displays information by accessing data from internal organization database (MariaDB). The IT team has requested for a fixed IP address for it which needs to be ping-able. I have attached a static IP address to my instance, but it is not that. Can anyone please help?

1 réponse
1
Réponse acceptée

Hello,

It sounds like you figured out the static ip. To enable Ping/ICMP, you will need to edit your firewall for the Lightsail instance and allow PING.

To enable Ping/ICMP:

  1. Navigate to the networking page for your instance
  2. Under the firewall section, choose +Add rule.
  3. From the application list, choose PING (ICMP). Choose Save.
  4. From a terminal window on your local machine, send a ping command to your Lightsail instance’s IP address. You can find the IP address from the Connect tab of the instance details page or from instance card on the Lightsail home page.
ping -c 5 192.168.2.143
profile pictureAWS
EXPERT
Chris_G
répondu il y a 2 ans
  • Thank you so much!!! This was helpful

  • If this answer helped you, please mark it as the accepted answer!

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions