I am encountering a perplexing issue with my Streamlit app deployment. I am running the app on an AWS EC2 instance using the command:
python -m streamlit run app.py --server.port 8080 --server.address="0.0.0.0"
The app loads perfectly in the server machine’s browser, and it also works fine on some ports (e.g., 8080 or 8051) when accessed from an external machine. However, on other ports like 8081, I only see a bluish canvas in the browser, indicating that the app is attempting to load but never actually does.
Any suggestions on why this issue occurs only on specific ports or how to resolve it would be appreciated.