URL generated with "streamlit run" never loads


I am new to Streamlit and am attempting to open my app in a web browser. However, my browser will not load the URL.

Steps to reproduce

  1. Install Streamlit within desired conda environment, using Ubuntu WSL.
  2. Create python script my_app.py, which imports Streamlit and runs simple Streamlit commands.
  3. In an Ubuntu terminal (within the conda environment that has Streamlit installed), run streamlit run my_app.py
  4. Paste the “Network” URL into a Chrome browser. The page never loads, and I do not get an error message.
  5. Paste the “External” URL into a Chrome browser. Recieve the message “This site can’t be reached73.95.248.17 took too long to respond.”

Expected behavior:

From the documentation, I believe my app should open in an online page.

Debug info

  • Streamlit version: 1.25.0
  • Python version: 3.10.4
  • Using: Conda
  • OS version: Windows 11 Pro, version 22H2, and Ubuntu 20.04.4 LTS,
  • Browser version: 115.0.5790.171 (Official Build) (64-bit)

Hi @sequoia1999
It seems like you’re encountering issues when trying to run your Streamlit app and access it via a web browser.

- Check Your Firewall and Anti-virus Software
- Check Port Availability

streamlit run my_app.py --server.port 8502

- Check Your Network Configuration
- Check Streamlit Logs
- Try a Different Browser
- Check External URL Configuration

Network URL:
External URL: http://your-public-ip:8501

- Network Configuration in WSL
- Check Windows Firewall
- Update Streamlit

pip install --upgrade streamlit

- Restart Your Computer

I hope from one of the above-mentioned tips, your problem will solve. Please recheck all these steps if you have missed something and run your app again.