Fix Virtual PC 2007 Shared Networking (NAT) Internet Not Working in Windows Server 2003, 2008 and Vista Guest OS
After installing Windows Server 2003, Windows Server 2008 and Windows Vista into Microsoft Virtual PC’s virtual machine (VM) (update to Virtual PC 2007 SP1) as guest operating system, and set the Networking Settings for the VM to use Shared Network (NAT) as the network adapter, the Internet appears to be not working where web browser (Internet Explorer, IE and Firefox) cannot connect, find, locate or browse to website.
However, when IP address is used, access to the external server on Internet may work. For example, ping, trace route, ftp, sftp, telnet and SSH using IP address instead of domain name or host name, user can successfully connecting to the remote server.
NAT (Network Address Translation) is an easy shared networking technique that masquerading or transceiving network traffic through a router that involves re-writing the source and/or destination IP addresses and the TCP/UDP port numbers of IP packets as they pass through. In the case of Virtual PC, it uses a virtual NAT router which built on host computer’s default active network connection to allow guest operating system to access Internet via the host’s Internet connection.
Shared Networking or NAT allows computers or hosts on a private network to access the Internet using a single IP address, without exposing the PCs (or virtual machines) to the external network, significantly reduce security risk. NAT is also useful to allow virtually unlimited number of IP addresses to connect to Internet, thus administrator is not limited by the amount of IANA assigned-IP address allocated space. Beside, Shared Network (NAT) allows user to easily plug and play or move the virtual machine or physical machine to different network configurations such as different Wi-Fi wireless access point, home or office network.
Most computers, including Virtual PC 2007 virtual machines can easily access Internet using Shared Networking, as easy as right after operating system is installed, which enable DHCP by default. So, the problem with Windows Server 2003, Server 2008 and Vista as guest OS cannot access Internet is by design. The Internet not working issue is caused by when the guest operating system queries for DNS Server from Shared Network (NAT) virtual router, the guest OS is configured to use the same DNS servers which are used by the physical host computer.
This is not the case with a Windows Server 2003 guest though. The problem is that Shared Networking configures the guest operating system to use the same DNS servers as are used by the physical computer. However, when actual DNS query resolving packets are been returned, it’s actually returned from the IP address of “192.168.131.254″, which is the virtual gateway used by Shared Networking (NAT).
Windows Server 2003, Windows Server 2008 and Windows Vista will reject any DNS resolution packets that are returned from a different source from than the DNS Server (both has different IP address) that it had requested the information from. As thus, all name resolution of domain name and URL fails, indirectly leads to the guest operating system appears to be cannot connect to Internet. Windows XP and older operating system is not affected by this behavior.
To fix the Shared Network (NAT) Internet no connection or not working issue, the resolution is to manually assign the IP address for the DNS Server for the guest operating system to 192.168.131.254, the virtual gateway IP address used by Virtual PC. To make the change (in guest operating system), open Network Connections folder (in Windows Vista, access via Network and Sharing Center), and right click Local Area Connection network icon to select its Properties. Then double click on Internet Protocl (TCP/IP) under General tab or Internet Protocol Version 4 (TCP/IPv4) under Networking (for Windows Vista) tab.

Click to select the radio button of Use the following DNS server addresses, and then type in 192.168.131.254 into the IP address box for Preferred DNS Server. Click OK twice to exit, and voila, the Shared Network (NAT) now works as it should with Internet access.
If you’re encountering this problem in Windows XP guest OS, it’s probably caused by invalid DNS server assigned by Virtual PC network adapter too.
Related Articles
- Microsoft Virtual PC (VPC) 2007 SP1 Free Download
- How to Bridge Virtual PC 2007 to Use Host Computer Wireless Network Adapter
- VMware Server 2.0 Beta 2 Direct Download Link with Serial Number
- VMWare Server Causes System Frozen, Hang and Unresponsive When Power/Start Up in Vista
- Windows Cannot Hibernate Computer with More Than 4 GB Memory
- How to Enable PAE in x86 32-bit Windows Server 2003 and 2000 to Use Large 4GB or More RAM Memory
- Download Windows Search 4.0 Preview
- What’s the Login User Name and Password for VMWare Server 2.0?
- Workaround to Run VMWare Server on Windows Vista
- Enable Lock Pages in Memory to Prevent Database Paging to Disk










































July 30th, 2010 06:17
Just the fix I needed. Thanks.
July 21st, 2010 02:54
Wow, instant fix! Thank you so much.
June 8th, 2010 17:49
Thank you a lot my friend, I am having BackTrack4 running as the guest operating system, and I had an issue when trying to connect to the internet, so if you wanna do it in Ubuntu ( where BackTrack4 is Ubuntu based) use
->dhclient eth0
->sudo nano /etc/resolv.conf
and edit the nameserver line from 192.168.2.1 to 192.168.131.254 and everything will works fine
NOTE: after editing restart the network interface
-> /etc/init.d/networking restart
if you get repeated Errors then just ignore it and “Ctrl + C” it
regards,
~ Abed
May 13th, 2010 23:49
“To fix the Shared Network (NAT) Internet no connection or not working issue, the resolution is to manually assign the IP address for the DNS Server for the guest operating system to 192.168.131.254”
Just what I needed, many thanks!!!
April 17th, 2010 20:14
Excellent, thank you
April 8th, 2010 04:22
Same goes for me!
I’ve been going nuts trying to get updates to work for my virtual server 2003.
Hooray!
April 7th, 2010 22:54
A follow up. 192.168.131.254 address was unecessary – just turned on NAT. Cisco VPN works with UDP only from VM.
April 5th, 2010 03:56
I have what is obviously a DNS Resolution issue running a Vista 32-bit Ultimate VM on Windows 7 Pro 64-bit Virtual PC. I tried the 192.168.131.254 DNS address to no avail and even looked for a security tab on the virtual Intel adaptor which does not exist. I also tried disabling the host protection (SEP) on the host and no luck. I can ping anyting except 192.168.131.254 but DNS resolution is obviously not hapening. Maybe MS changed the virtual DNS address in Win7 64-bit? Anyone have any other ideas?
Thanks,
Joe
March 24th, 2010 17:35
I am still having trouble connecting my VPC2007 Server 2008 to the internet even when using this solution
Any ideas on the situation
Greetz Dwayne
March 7th, 2010 08:12
thanks bro, works 100% when running windows 7 ultimate in :Windows Virtual PC”
March 4th, 2010 03:20
Hi,
it solved my problem. thank you very much for your support
Regards
Rajan Verma
March 3rd, 2010 05:25
Perfect. Worked straight away. Now need to see if we can get to work with two other specific IP’s too.
February 28th, 2010 23:40
[...] I found an interesting article about this: Fix Virtual PC 2007 Shared Networking (NAT) Internet Not Working in Windows Server 2003, 2008 and Vi… Categories: Uncategorized Tags: Comments (0) Trackbacks (0) Leave a comment [...]
February 21st, 2010 17:30
Thank you!
solved the problem with internet connection through manual guidance addresses DNS server guest identical at CSN-server host
thanks again
February 19th, 2010 06:45
hello good friends and learned me ahy q problems with internet connection pc wirtual q Vuena what to do is see if they have windows xp sp2 only they ought to go to your windows xp desktop and Ariba in 2007 DEVES virtual bar to go comfiguracion editing and put him aces clik to networks and network simvolo winged ahy you put shared network (NAT) and ready if it works send me an email to n.roa619 @ gmail.com