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?

profile picture
已提問 2 年前檢視次數 801 次
1 個回答
1
已接受的答案

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
專家
Chris_G
已回答 2 年前
  • Thank you so much!!! This was helpful

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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南