Skip to content

Configure Streamlit to listen on all network interfaces (0.0.0.0)#338

Merged
t0mdavid-m merged 1 commit intomainfrom
claude/streamlit-listen-all-ips-lWgaj
Feb 10, 2026
Merged

Configure Streamlit to listen on all network interfaces (0.0.0.0)#338
t0mdavid-m merged 1 commit intomainfrom
claude/streamlit-listen-all-ips-lWgaj

Conversation

@t0mdavid-m
Copy link
Member

Summary

This PR updates the Streamlit configuration to bind to all network interfaces (0.0.0.0) instead of the default localhost-only binding. This allows the application to be accessible from external hosts when deployed in containerized environments.

Changes Made

  • .streamlit/config.toml: Added address = "0.0.0.0" to the [server] configuration section
  • Dockerfile: Updated the single-instance entrypoint to explicitly pass --server.address 0.0.0.0 flag when starting Streamlit
  • Dockerfile_simple:
    • Updated the nginx configuration to listen on 0.0.0.0:8501 (changed from 8501)
    • Updated the single-instance entrypoint to explicitly pass --server.address 0.0.0.0 flag when starting Streamlit

Implementation Details

The changes ensure consistent network binding across all deployment scenarios:

  • The config file provides a default binding for local development
  • The Docker entrypoint flags override/reinforce this setting for containerized deployments
  • The nginx configuration in multi-instance mode now explicitly binds to all interfaces, making it accessible from outside the container
  • Both single-instance and multi-instance deployment modes are updated for consistency

https://claude.ai/code/session_01GX2U6UAAj8sF1smN9Lc4J5

In single-instance mode, `streamlit run app.py` was invoked without
`--server.address`, causing Streamlit to default to localhost and be
unreachable from outside the container. This adds `--server.address
0.0.0.0` to the single-instance entrypoint in both Dockerfiles, sets
`address = "0.0.0.0"` in .streamlit/config.toml, and makes the nginx
listen directive in Dockerfile_simple explicitly bind 0.0.0.0.

https://claude.ai/code/session_01GX2U6UAAj8sF1smN9Lc4J5
@coderabbitai
Copy link

coderabbitai bot commented Feb 10, 2026

Warning

Rate limit exceeded

@t0mdavid-m has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 12 minutes and 57 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/streamlit-listen-all-ips-lWgaj

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@t0mdavid-m t0mdavid-m merged commit 68a9a59 into main Feb 10, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants