Thank you so much Randy. It worked!!!
This is what I have done to solve the issue:
- Connect to EC2 instance
- Login to Windows VM
- In the bottom-left corner of the window, Just right next to the Windows Start icon, there is a search icon, click it.
- Type firewall
- Click check firewall status
- Click the advanced setting
- Scroll down and click the inbound rule
- On the left panel, right click the Inbound Rules
- Click new rule
- 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!!!