Accessing a webserver running on guest on host

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
defiant
Posts: 1
Joined: 20. Jan 2017, 23:31

Accessing a webserver running on guest on host

Post by defiant »

Hello all,
I am using mac osx as a host for my lubuntu installation guest system.
I am using docker to run a webserver and trying to access the webpage from the host system.

The issue is I am able to get to the webpage if tried from the guest os, but not the host.

My current set up has a host only adapter and a nat network, both with static ips from same range.

Docker IP: 172.17.0.3
Guest OS IPs:
192.168.56.5
192.168.56.100

Now when I tried setting the webdomain to 192.168.56.5 or 172.17.0.3 using /etc/hosts I was able to access the web page.
So can anyone please help me figure out a way to fix this issue?
Thanks in advance.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Accessing a webserver running on guest on host

Post by socratis »

defiant wrote:I am using docker
Docker is a program that relies on VirtualBox but modifies its configuration files in unknown ways to us. It is not supported on these VirtualBox user forums, they have their own support channels. If you are having this problem with a standalone version of VirtualBox, then we can continue this discussion.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply