Host-only networking with Fedora guest not working

Discussions related to using VirtualBox on Windows hosts.
Post Reply
nickavv
Posts: 3
Joined: 3. Feb 2016, 05:44

Host-only networking with Fedora guest not working

Post 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!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Host-only networking with Fedora guest not working

Post by Perryg »

Remove the gateway in the guest. The host-only does not use a gateway because it is host to guest *only.
nickavv
Posts: 3
Joined: 3. Feb 2016, 05:44

Re: Host-only networking with Fedora guest not working

Post by nickavv »

That didn't change the situation unfortunately. I even restarted the VM after making the change for good measure
nickavv
Posts: 3
Joined: 3. Feb 2016, 05:44

Re: Host-only networking with Fedora guest not working

Post 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.
Post Reply