Windows – No Internet access on Windows Phone 8 emulator (despite working connection in Windows 8)

emulatorinternetwindowswindows-phone

I have no internet access on my Windows Phone 8emulator that I run in Windows 8 through the Visual Studio 2012. I know this because for one, I cannot open any website in the Internet Explorer within WP8 emulator.

The desktop on the other hand (on which the Windows 8 is running) has Internet access (I can browse websites without any problems in Windows 8). So, I have internet in Windows 8 instance I’m running, but I don't have in the Windows Phone 8 emulator that is run on that OS.

I don’t have any router in my home. I have the ethernet cable that I got from my internet provider connected directly to my network card in my PC. My IP is set staticaly, and is public.

Now all I did so far, was open Visual Studio and run an emulator. Once it loaded, I quit my mock application, picked Internet Explorer tile and tried to open couple known websites, all failed to load. I did not change any settings in an emulator, nor did I do anything else with the emulator image.

What I expected, was same behavior as with Windows Phone 7 (7.0 and 7.1) emulator. I ran emulator and I had instantly internet access on it, as long as my desktop internet connection was working. Here is not the case.

I would like to repeat one thing. I don't have a router. I did not change any settings in Windows 8 concerning network, all I did was run emulator and notice that it doesn't have internet access within it.

Best Answer

The Windows Phone 8 emulator runs in it's own (Hyper-V) VM with it's own networking and MAC addresses.

Using the Hyper-V Manager --> Actions --> Virtual Switch Manager, check the setup of the virtual switch; I believe that by default it's set to "Internal network" which mean no outside access.

"An internal virtual network is not bound to a physical network adapter. As a result, an internal virtual network is isolated from all external network traffic."

enter image description here

Since you say you have no router and just plug the host directly into the ISP's network to get Internet, you'll need to figure out a way to share the network connection. Either by changing the virtual switch setup to bind to an actual (extra) physical adapter in the host, which is then hooked into a router or alike (to split the network connection from the ISP), or by keeping it as "Internal Network" and then enabling Internet Connection Sharing on the host (so it acts as a router).

enter image description here

More info on setting up Hyper-V's networking from MS here: Configuring Virtual Networks

WP8 emulator troubleshooting covers it as well: Troubleshooting the Windows Phone 8 Emulator

Here's some instruction on how to setup ICS for Hyper-V VMs on Windows 8: Share Internet Connection with Hyper-V Guests (NAT) on Windows 8

Related Question