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

后端 未结 4 966
夕颜
夕颜 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:16

    Setup your VM to run a host-only network, then reboot or restart networking to update DHCP. The IP address on the guest will now be accessible from the host.

    You can also use bridged network mode, but that won't work when the host is disconnected from the network.

提交回复
热议问题