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!

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン