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 回答
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!

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则