Access Tomcat localhost:8080 of guest VirtualBox VM from Host OS

后端 未结 4 907
夕颜
夕颜 2021-02-20 06:26

I have an XP laptop on which I am running an Ubuntu distro inside VirtualBox which is running a website via Tomcat. When I am in the VM I can access the site with localhost:8080

4条回答
  •  终归单人心
    2021-02-20 07:15

    The following helped me after a new VM and tomcat installation.

    Get the IP address of the Guest OS and the port number on which tomcat was started. Then you can access it via:

    IP:Port/

    In case you are not able to access it still or if you get no response, try

    sudo iptables -F

    This would flush the tables and would reflect the new mapping. You would need to do this only once though.

提交回复
热议问题