Skip to content

Instantly share code, notes, and snippets.

@tuffacton
Last active March 7, 2024 05:47
Show Gist options
  • Star 27 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save tuffacton/da5a9b42c0a2e9e355353689f93c84b3 to your computer and use it in GitHub Desktop.
Save tuffacton/da5a9b42c0a2e9e355353689f93c84b3 to your computer and use it in GitHub Desktop.
Colaboratory Notebook that hosts a streamlit app and creates an ngrok https tunnel for access.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tuffacton
Copy link
Author

Hey! I am getting this error when I try opening "https://2f10-35-196-239-11.ngrok.io/" this link. Please help.

The connection to https://2f10-35-196-239-11.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:80.

Make sure that a web service is running on localhost:80 and that it is a valid address.

The error encountered was: dial tcp 127.0.0.1:80: connect: connection refused

Can you post a copy of your Colaboratory Notebook?

@Lyrics46
Copy link

Lyrics46 commented Feb 8, 2022

I have the same problem as you. Did you solve it?@Aishwary-Rawal
I use VPN when I am using Colab. Is the problem related to this?

@saiprasad-psp
Copy link

Hi,
I get the following error.
image

@2368401311
Copy link

I could not use this way. the localhost refused. thus, i find the other way to solve it
npx create localtunnel and show the url to check in the browse

!streamlit run app.py & npx localtunnel --p 8501

@2368401311
Copy link

Hi, I get the following error. image

try this one. only on line code

!streamlit run app.py & npx localtunnel --p 8501

@Aramatic
Copy link

https://youtu.be/zdJdJ1tHGnA , you can watch video for running streamlit in local hoast using localtunnel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment