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  virtualbox.local

When you launch a http server, do bind to host virtualbox.local instead of 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. 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.