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

[功能请求] 如何让这个地服务器在小型局域网内被访问 #3691

Closed
YRL694560616 opened this issue Dec 12, 2021 · 3 comments
Closed

Comments

@YRL694560616
Copy link

我遇到的问题是

你好,我对于网络配置方面不太懂。我希望这个小型的服务器可以让局域网内的用户访问到。请问要如何操作呢?

我希望能有这样的解决方案

希望可以在小型的局域网内部署,直接通过IP+端口号(和现在一样访问 http://127.0.0.1:8000 可以查看效果,只不过IP从127.0.0.1换成局域网内的IP地址)

我觉得这些备选方案也可以接受

No response

@welcome
Copy link

welcome bot commented Dec 12, 2021

感谢你对 OI Wiki 的关注!记得在 Issue 中表达清楚自己的意思哦~

@diauweb
Copy link
Member

diauweb commented Dec 12, 2021

请说明一下目前你使用的运行站点的方式

如果你使用的是 mkdocs serve,请添加 -a ip地址:端口 参数,并检查你使用的操作系统/发行版的防火墙有关设置。设置无误后即可向局域网开放访问站点

@YRL694560616
Copy link
Author

请说明一下目前你使用的运行站点的方式

如果你使用的是 mkdocs serve,请添加 -a ip地址:端口 参数,并检查你使用的操作系统/发行版的防火墙有关设置。设置无误后即可向局域网开放访问站点

谢谢,我关闭防火墙后可以实现局域网的访问了

@ksyx ksyx closed this as completed Dec 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants