我已经在本地网络 LAN 上安装了 jupyter,但我无法从 LAN 上的另一台机器访问 http://<IP>:8888
。我用 iptables 打开了端口 8888 和端口范围 49152 到 65535(这个范围在 http://jupyter-notebook.readthedocs.io/en/latest/public_server.html 指定)
本指南 http://jupyter-notebook.readthedocs.io/en/latest/public_server.html 描述了公开公开笔记本,但我只是试图通过 LAN 共享。
我错过了一步吗?
原文由 blue-sky 发布,翻译遵循 CC BY-SA 4.0 许可协议
尝试
jupyter notebook --ip <your_LAN_ip> --port 8888
然后从另一台计算机访问http://your_LAN_ip:8888
。建议您在访问笔记本服务器时使用密码。要设置密码,只需运行
jupyter notebook password
。为了使其更加安全,您可以通过将参数--certfile
和--keyfile
传递给jupyter notebook
来为服务器使用 SSL。您可以 在此处 阅读有关设置的更多信息。