使用移动设备访问托管在 vm 上的 django 网站

Accessing django website hosted on vm with mobile device

我 运行 我的 django 网站 python manage.py runserver 0.0.0.0:8080 在 Vagrant 上设置为将 8080 端口转发到主机上的 8081。我可以通过访问它的本地 ip (192.168.X.X) 在主机上访问这个网站,但不能在移动设备上访问 (当然也可以通过进入它的本地 ip)。

有什么想法吗?我所能找到的所有关于 运行 服务器的 0.0.0.0 我的情况已经发生了。

没关系,我忘记在我的 Vagrantfile 中启用 public_network