Virtualbox:无法从主机 (Windows 10) 访问来宾 (ubuntu 15.05) 中的 tomcat 8080

Virtualbox: cannot access tomcat 8080 in guest (ubuntu 15.05) from host (Windows 10)

我在 (Windows 10) 和来宾 (Ubuntu Desktop 15.05) 之间使用具有桥接网络的 Virtualbox。

Tomcat 是 运行 在具有以下 IP 地址 192.168.1.10 的来宾中的端口 8080 上。在浏览器中键入 http://192.168.1.10:8080 时,我无法从主机访问此实例。这很奇怪,因为我可以访问来宾中 运行 的 postgreSQL 实例。

跟server.xml的配置有关系吗?

防火墙8080端口没有打开。我使用以下命令打开它并且有效:

´sudo /sbin/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT´

非常感谢!