Cannot access internet from client using NAT adapter setting

Discussions about using Windows guests in VirtualBox.
Post Reply
RaelB
Posts: 5
Joined: 25. Nov 2014, 15:24

Cannot access internet from client using NAT adapter setting

Post 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
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Cannot access internet from client using NAT adapter set

Post 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".
RaelB
Posts: 5
Joined: 25. Nov 2014, 15:24

Re: Cannot access internet from client using NAT adapter set

Post 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?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Cannot access internet from client using NAT adapter set

Post 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.
RaelB
Posts: 5
Joined: 25. Nov 2014, 15:24

Re: Cannot access internet from client using NAT adapter set

Post by RaelB »

Thanks
Attachments
ipconfigs.zip
(1.72 KiB) Downloaded 10 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Cannot access internet from client using NAT adapter set

Post 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.
RaelB
Posts: 5
Joined: 25. Nov 2014, 15:24

Re: Cannot access internet from client using NAT adapter set

Post by RaelB »

Yes, sorry, this should work.
Attachments
guest.zip
(575 Bytes) Downloaded 11 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Cannot access internet from client using NAT adapter set

Post 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?
RaelB
Posts: 5
Joined: 25. Nov 2014, 15:24

Re: Cannot access internet from client using NAT adapter set

Post 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..)
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Cannot access internet from client using NAT adapter set

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