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!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인