Linux Mastering Development Ubuntu

Access virtual machine from browser under virtual box

I am running on 20.04.1. I have a virtual machine installed using Oracle VirtualBox 6.12. The VM is also Ubuntu 20.04. The virtual machine networking type is bridged. When I try to access the virtual machine from Google Chrome or from Firefox on the host, I get a report of connection refused on the virtual machine, I am able to ping both localhost and the network address of the VM. However, nmap can contact localhost but not the network address of the VM when running on the VM. I am unable to ping the VM from the host machine nor can nmap access it. Both machines are on the same subnet. I have tried with ufw both enabled and disabled on the VM. This has worked before for me using the same host but a different VM.

Any ideas on how I can troubleshoot this?

Leave a Reply

Your email address will not be published. Required fields are marked *