解决 查看虚拟机的ip,默认是10.0.2.15查看Virtualbox的ip,默认是192.168.56.1在Virtualbox网络->高级中配置端口转发 具体步骤参考: https://www.cnblogs.com/haicheng92/p/6838206.html