讨论数量:
我这里解决了。一开始 Homestead.yaml 文件 设置的 IP 为 192.168.10.10 ,本机的 IP 为 192.168.10.105。但是我司使用两个路由进行桥接,我连的为第 2 个路由,属于 10 网段,第 1 个路由为 1 网段。更改 Homestead.yaml 文件 设置的 IP 为 192.168.1.10 ,host 也需要改。改为 1 网段后解决了。具体原因不了解,可能换个 IP 也就好了。借鉴 https://laracasts.com/discuss/channels/gen... 与 https://stackoverflow.com/questions/260512...
遇到了相同的问题:
The specified host network collides with a non-hostonly network!
This will cause your specified IP to be inaccessible. Please change
the IP or name of your host only network so that it no longer matches that of
a bridged or non-hostonly network.
Bridged Network Address: '192.168.10.0'
Host-only Network 'Intel(R) Dual Band Wireless-AC 8265': '192.168.10.0'
通过 with a non-hostonly network
猜测 homestead 设置的网络模式是 主机模式
参考
如果你的主机路由是 192.168.10.0/24,那么 主机模式
下就不能再使用这个网段了,将 ip 地址由 192.168.10.10
改为 192.168.20.10
或其他网段可以解决问题
推荐文章: