Page 1 of 1
Cannot access internet from client using NAT adapter setting
Posted: 25. Nov 2014, 15:48
by RaelB
Hi,
I have a Windows 7 x64 host, and Windows XP Pro client.
Using the plain "NAT" setting, I cannot access the internet (does work on host).
I have allowed Oracle VirtualBox through the firewall.
ipconfig on client:
Connection-specific DNS Suffix . : home.gateway
IP Address. . . . . . . . . . . . : 10.0.2.15
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.2.2
on client: ping 10.0.2.15 works. ping 10.0.2.2 also works.
(If a use NatNetwork, then it also does not work.)
Any ideas what could be wrong/how to fix??
Thanks
Rael
Re: Cannot access internet from client using NAT adapter set
Posted: 25. Nov 2014, 16:17
by mpack
Make sure the guest OS is configured to get an IP address automatically (i.e. using DHCP).
BTW, this is not a Windows Host question - moving this topic to "Windows Guests".
Re: Cannot access internet from client using NAT adapter set
Posted: 25. Nov 2014, 16:59
by RaelB
mpack wrote:Make sure the guest OS is configured to get an IP address automatically (i.e. using DHCP).
That is the case. But it still does not work on Nat or "Nat Network" setting.
Are there any other things I can check?
Re: Cannot access internet from client using NAT adapter set
Posted: 25. Nov 2014, 17:04
by mpack
RaelB wrote:Are there any other things I can check?
From the host command console type "ipconfig/all >host.txt" and in the guest do likewise, i.e. "ipconfig/all >guest.txt".
Pack both text files into one zip and post the zip here.
Re: Cannot access internet from client using NAT adapter set
Posted: 25. Nov 2014, 18:13
by RaelB
Thanks
Re: Cannot access internet from client using NAT adapter set
Posted: 25. Nov 2014, 19:21
by mpack
I don't know what you've done to the "guest.txt" file, but it seems to have had all the newlines stripped out of it, making it hard to read.
Don't copy and paste bits of text, if that's what you did. Just define a shared folder in the VM settings (requires Guest Additions to be installed), move the file there, then post it here.
Re: Cannot access internet from client using NAT adapter set
Posted: 25. Nov 2014, 21:56
by RaelB
Yes, sorry, this should work.
Re: Cannot access internet from client using NAT adapter set
Posted: 26. Nov 2014, 11:55
by mpack
The only difference I see in your XP guest that's different from mine, is that you have the DNS suffix search list non-empty. Why is that?
Re: Cannot access internet from client using NAT adapter set
Posted: 26. Nov 2014, 15:02
by RaelB
As far as I know I have not done anything specific to set that.
Is there something I can do to clear that?
I have not tampered with the guest IP settings, just left them at default (which is obtain IP address automatically, etc..)
Re: Cannot access internet from client using NAT adapter set
Posted: 26. Nov 2014, 17:36
by mpack
Actually, on further investigation that difference is probably harmless.
I find that when I'm at work I get a non-empty DNS suffix in a VM which uses NAT. I assume this is because at work I'm behind a server and don't access the router directly. If you are also behind a business server then perhaps your VM is being blocked there for some reason.