Page 1 of 1

Host-only networking with Fedora guest not working

Posted: 3. Feb 2016, 05:48
by nickavv
Hi all,
I've got a Fedora 23 workstation guest running in VirtualBox, Windows 10 host.

I configured the VM with a Host-only adapter (ip 192.168.56.1, netmask 255.255.255.0). In Fedora I configured the following static IPv4 settings:

address: 192.168.56.102
netmask: 255.255.255.0
gateway: 192.168.56.1
dns: 192.168.56.1

From my Windows host I can ping 192.168.56.102 from the command prompt, but I can't SSH into the box with PuTTY, and I can't access a web server running at port 3000 through my host's web browser.
What can I do to resolve this? Thanks!

Re: Host-only networking with Fedora guest not working

Posted: 3. Feb 2016, 14:57
by Perryg
Remove the gateway in the guest. The host-only does not use a gateway because it is host to guest *only.

Re: Host-only networking with Fedora guest not working

Posted: 4. Feb 2016, 00:25
by nickavv
That didn't change the situation unfortunately. I even restarted the VM after making the change for good measure

Re: Host-only networking with Fedora guest not working

Posted: 5. Feb 2016, 04:49
by nickavv
I tracked the problem down to my web server itself (a Rails application). Apparently Rails' default behavior is to listen only on localhost. The following page includes instructions which worked for me to make Rails listen on all interfaces: https://fullstacknotes.com/make-rails-4 ... interface/.

After doing this, I was able to access my application from outside the VM.