Page 1 of 1

Problem setting network between host and guest

Posted: 7. Oct 2015, 14:47
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.

Re: Problem setting network between host and guest

Posted: 7. Oct 2015, 15:15
by Perryg
icmp is disabled by default on windows so ping will fail. search MS for how to enable it.

Re: Problem setting network between host and guest

Posted: 7. Oct 2015, 15:33
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.

Re: Problem setting network between host and guest

Posted: 8. Oct 2015, 17:14
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.

Re: Problem setting network between host and guest

Posted: 9. Oct 2015, 00:12
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.