Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access locally deployed documents via ip:port #1081

Open
GitHubUserC opened this issue May 29, 2024 · 1 comment
Open

Unable to access locally deployed documents via ip:port #1081

GitHubUserC opened this issue May 29, 2024 · 1 comment
Labels
enhancement New feature or request platform

Comments

@GitHubUserC
Copy link

Summary

After local deployment it can only be accessed via localhost, can not via ip on other devices, and modifying the next dev command in next.config.js to next dev -H 0.0.0.0 didn't work either.

Steps to reproduce

Code snippet:

no change to code or config

If applicable, please provide the steps we should take to reproduce the bug:

All my steps were performed exactly as per the procedure in REDAME.md, apart from that I also tried to pass the following commands and the end result was the same.

git clone https://github.com/streamlit/docs.git
yarn install
yarn dev -H 0.0.0.0

Expected behavior:

Locally deployed documents can also be accessed via ip:port same as via localhost:port.

Actual behavior:

1716988981436

image

Debug info

root@2aac7c6b2fa0:/docs# node -v
v22.2.0
root@2aac7c6b2fa0:/docs# npm -v
10.7.0
root@2aac7c6b2fa0:/docs# yarn -v
1.22.22
  • Docs page link: /
  • npm version: 10.7.0
  • node version: v22.2.0
  • OS version: Ubuntu 24.04
  • Browser version: Chrome 119.0.6045.106/Chromium 102.0.5005.167
@GitHubUserC GitHubUserC added bug Something isn't working needs triage labels May 29, 2024
@sfc-gh-dmatthews sfc-gh-dmatthews added enhancement New feature or request platform and removed bug Something isn't working needs triage labels Jun 4, 2024
@sfc-gh-dmatthews
Copy link
Contributor

sfc-gh-dmatthews commented Jun 4, 2024

Thanks for the report. I'm not sure if development mode for docs was intended to support network access. I'll inquire with engineering, but for now, I've marked this as an enhancement request since the primary mode for docs development is through localhost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request platform
Projects
None yet
Development

No branches or pull requests

2 participants