# Streamlit not getting AWS public IP

**URL:** <https://discuss.streamlit.io/t/streamlit-not-getting-aws-public-ip/5802>\
**Category:** Using Streamlit\
**Tags:** aws\
**Created:** [September 26, 2020, 6:25am UTC](https://discuss.streamlit.io/t/streamlit-not-getting-aws-public-ip/5802 "2020-09-26T06:25:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Steve\_Chen](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/steve_chen/32/3259_2.png) [@Steve\_Chen](https://discuss.streamlit.io/u/Steve_Chen)\
**Post date:** [September 29, 2020, 9:39am UTC](https://discuss.streamlit.io/t/streamlit-not-getting-aws-public-ip/5802/3 "2020-09-29T09:39:04Z")

</div>

> [@Steve\_Chen](#):
>
> streamlit run test.py

Thank you so much Randy. It worked!!!

This is what I have done to solve the issue:

1. Connect to EC2 instance
2. Login to Windows VM
3. In the bottom-left corner of the window, Just right next to the Windows Start icon, there is a search icon, click it.
4. Type firewall
5. Click check firewall status
6. Click the advanced setting
7. Scroll down and click the inbound rule
8. On the left panel, right click the Inbound Rules
9. Click new rule
10. Create an inbound rule by filling in the protocol type with TCP, port numer: 8501…

Find my public IP in EC2 console: 3.235.195.213  
In the browser, type 3.235.195.213:8501  
And it connected to the streamlit app that I ran in the server.

It worked!!!

---

_[View the full topic](https://discuss.streamlit.io/t/streamlit-not-getting-aws-public-ip/5802)._
