The host cannot access the tomcat service started on the Virtual Machine linux. After linux is installed in virtualBox, tomcat is installed and started. The tomcat service can be accessed from the virtual machine, but the host cannot be accessed, however, ping can be performed between the host and the virtual machine at the same time. solution: 1. Disable the Firewall Service in the virtual machine. Desktop-management-security level and firewall: Set the firewall to disable. Or, after you log on as the root user, run service iptables stop -- stop service iptables start -- to start the server. However, in actual applications, disable the security of the server reduced by the firewall. If you telnet the VM's 8080 window in the dos window of the host machine, it will fail. It can be determined that the VM's 8080 window is faulty and should be blocked by the firewall. Modify the firewall settings. 2. Modify the/etc/sysconfig/iptables file to modify the firewall configuration of the Linux system. If you want to open the port, add A-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 8080-j ACCEPT in it, where 8080 is the port number to be opened, then restart the Firewall Service in linux,/etc/init. d/iptables restart.