port forwarding with nginx on Ubuntu Server in VirtualBox

Discussions related to using VirtualBox on Windows hosts.
Post Reply
virtualboxer777
Posts: 1
Joined: 29. Sep 2013, 14:30

port forwarding with nginx on Ubuntu Server in VirtualBox

Post by virtualboxer777 »

I have nginx running on Ubuntu Server (guest) in VirtualBox on Windows 7 (host)

I need to access the nginx webserver's localhost.

I'm assuming there's no way to do this directly from Ubuntu Server's terminal, because I probably need a browser to do this and there's no browser there.

So, I need to access the nginx webserver's localhost from the host's browser.

How do I configure NAT port-forwarding on VirtualBox to accomplish this?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: port forwarding with nginx on Ubuntu Server in VirtualBo

Post by Perryg »

shut down the guest, open the guest settings -> networking & click the advanced icon then the Port Forwarding icon. Add the proper port and save.
Post Reply