question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can`t connect to streamlit server over network

See original GitHub issue

Summary

When I run streamlit hello it works very well in my local browser. When I try to connect from another computer on the network, using the provided network url or using the local ip address of the computer running the app, streamlit seems to get stuck on connecting.

Steps to reproduce

What are the steps we should take to reproduce the bug:

  1. Run streamlit hello
  2. with another computer on the same network go to other.ip.address:port

Expected behavior:

I expected to be able to access the running app over the network, and being able to see the hello-example in the browser on another computer.

Actual behavior:

On the computer not running the app, you do see that it is trying to do something but it never connects to the streamlit server. Screenshot_20191017_095406

Is this a regression?

no, I have not had this work before

Debug info

  • Streamlit version: 0.47.0, 0.48.1
  • Python version: 3.6.8
  • Python3 with venv
  • OS version: ubuntu
  • Browser version: chrome, firefox

Additional information

If needed, add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
DanielDondorpcommented, Oct 25, 2019

Thank you for your answer. I looked for ~/.streamlit/config.toml and it was not there. In ~/.streamlit only credentials.toml existed. I created config.toml with only this in it:

[server]
enableCORS = false

This indeed fixed the problem for access over the local network.

Configuring it with

[browser]
serverAddress = "the_address.com"

does not work. If I navigate to the_address.com/8501 both on the computer that runs the app and other computers on the network the browser does try to go to the network ip address that streamlit gives in the console but I get server-not-found errors.

3reactions
kurt-rheecommented, Dec 9, 2019

@dcaminos inside of a conda environmet where should I place my config.toml file?

Read more comments on GitHub >

github_iconTop Results From Across the Web

App is not loading when running remotely - Streamlit Docs
Symptom #1: The app never loads · Try port 80: Some hosts expose port 80 by default. To set Streamlit to use that...
Read more >
Network URL not working on other computers - Using Streamlit
When I try to access the web app from another computer using the provided network URL, Streamlit shows: Safari can't open the page...
Read more >
Unable to connect to the streamlit app on using the Network ...
i have a streamlit app that is created and will be used internally in the company so on the internal network. I try...
Read more >
Can't access streamlit app from outside of network
Hi, I've made an app that I'm ready to share with a few friends. I forwarded ports and can access it from outside...
Read more >
Configuration - Streamlit Docs
As flags on the command line when running streamlit run : ... Default: (unset) # address = # The port where the server...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found