当我启动IPython / Jupyter Notebook时,我收到以下警告:
WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.
“收听所有IP地址”是什么意思?我该如何解决这个问题?
答案 0 :(得分:3)
这意味着任何人都知道您的IP和您在jupyter中使用的端口将能够访问您的jupyter笔记本。例如,如果您要连接到路由器后面的Internet,其他计算机可以通过以下方式访问您的笔记本:http://[your_ip]:8888以访问您的笔记本。 8888是jupyter的默认端口。
如果要在所有IP上停止绑定,可以在控制台中指定要绑定的IP:
jupyter notebook --ip=x.x.x.x
x.x.x.x是您要绑定的IP。