How does a physical machine access items running on the virtual machine centos

  node.js, question

According to the node example, write the http server, run it in centos installed on virsualbox, and how to access the project through the browser of the physical machine.

Vm sets the network card of the virtual machine to bridge mode and then goes to centos to set dhcp to start up and automatically acquire it, so that the virtual machine will acquire an intranet ip from your intranet router and you can access it with that ip.