Problem setting network between host and guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
itanos
Posts: 2
Joined: 7. Oct 2015, 14:36

Problem setting network between host and guest

Post by itanos »

I just need to be able to call service on client from host and vice versa, unfortunately I just can't make it work.

Host: Windows 7 Professional
Client: Windows 7 Professional with Guest Additions 4.3


I've set up a host-only network.

Host ipcnofig:

Code: Select all

Ethernet adapter Ethernet:
Link-local IPv6 address . . . : fe80::2901:db57:33a3:d585%11
IPv4 Address: 192.168.1.150
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.250

 Ethernet Virtualbox Host-only Network: 
 Link-local IPv6 address . . . : fe80::c4f6:a7be:24ae:59e7%13
 IPv4 Address . . . . . . . . . . . : 192.168.56.1
 Subnet Mask . . . . . . . . . . : 255.255.255.0
 Default Gateway . . . . . . . . . . :
...

Client ipconfig:

Code: Select all

IPv4 Address: 192.168.56.101
Subnet Mask: 255.255.255.0
Default Gateway:
...


The firewall on client is turned off, and there is no antivirus. When I try to ping the host from client, it says

Code: Select all

 ping 192.168.56.1
    Reply from 192.168.56.101: Destination host unreachable 
Similar message appears when pinging client from host. I'd like to ask what could the problem be. I'd be thankful for any advice.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Problem setting network between host and guest

Post by Perryg »

icmp is disabled by default on windows so ping will fail. search MS for how to enable it.
itanos
Posts: 2
Joined: 7. Oct 2015, 14:36

Re: Problem setting network between host and guest

Post by itanos »

Thank you for response,
I've enabled icmp on a client by adding inboud role for ICMPv4, and tried to ping client from host, but it is still returning Destination host unreachable.
GabeF
Posts: 1
Joined: 8. Oct 2015, 17:13

Re: Problem setting network between host and guest

Post by GabeF »

Try rebooting? I've been fighting a problem lately where I lose Host<-->Guest connectivity on hostonly interfaces after a sleep/resume.

When using VirtualBox 5, my workaround right now is creating an additional hostonly interface and assigning it to the virtual machine and restarting the guest.
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Problem setting network between host and guest

Post by BillG »

That is interesting. I had a similar experience with a vm having problems with bridged networking. Deselecting the first adapter and enabled the second one solved that too.

Don't know why, but it seems the NIC driver gets itself screwed up and starting afresh works.
Bill
Post Reply