VirtualBox Access Client Http Server From Host

September 27, 2020

Setup Host-only Adapter.

NOTE: You might want to consider Static IP as well.

On Ubuntu Client, setup hosts file.

nano /etc/hosts
192.168.56.101  virtualbox.local

When you launch a http server, do bind to host virtualbox.local instead of 127.0.0.1 or localhost.

  • Python Webserver: python3 -m http.server --bind virtualbox.local 8000
  • Nuxt Dev Server: nuxt --virtualbox.local --port 3000

On Windows Host, setup windows host file.

192.168.56.101 virtualbox.local

From Windows Host, open browser and access the client’s http server via http://virtualbox.local:3000/

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.