bgibson
bgibson

Reputation: 19115

How do I view a website in my desktop browser from a web app running in server in a VM on my desktop?

I am running Ubuntu on my workstation, and headless Ubuntu Server in VirtualBox on this same workstation.

I'd like to write a web app and deploy it on Ubuntu Server in the VM, then load it in a web browser on my workstation.

Is this possible, and if so how? Thanks!

Upvotes: 1

Views: 156

Answers (2)

Nils Weinander
Nils Weinander

Reputation: 2141

If you want to keep NAT, you can use port forwarding, see this, exchange the ports to 80 and 8888 (or something) to do the same for HTTP.

Upvotes: 2

bgibson
bgibson

Reputation: 19115

Found the answer: Change the Virtual Box -> Settings (for the guest OS) -> Network -> Attached to: Bridged Adapter.

Upvotes: 1

Related Questions