Skip to content

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

Open
@GitHubUserC

Description

@GitHubUserC

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions