Troubleshooting Network Connectivity on Windows Phone Emulator
[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Windows Phone Emulator supports automatic network configuration for most of the common scenarios, such as a direct connection to the Internet, a connection to the Internet by using a proxy server, and a connection to the network by using VPN. The emulator automatically configures the proxy settings by querying the operating system for the proxy information. Developers can simply start Windows Phone Emulator and begin using network-based applications without specifying the configuration or a running a utility.
However, if your application is not able to access the network, use the following guidelines to help troubleshoot networking issues.
Verify that the issue is specific to the emulator rather than the host computer.
Verify that you have network connectivity on the host computer.
Verify that the Internet is accessible by opening a non-cached Web page from the host computer, and then open the same page by using Internet Explorer on the emulator.
The following networking issues are known and may need to be resolved as described in this section.
Cannot Connect to an Intranet Site by Using a Fully-Qualified Domain Name or IP Address
If you try to connect to an intranet site by using a fully-qualified domain name (FQDN) or IP address and are unable to connect, you may need to specify a proxy exception list. For additional information, see Internet Explorer Uses Proxy Server for Local IP Address Even if the "Bypass Proxy Server for Local Addresses" Option Is Turned On.
If you specify a Web service by using the format http://localhost:port/servicename.svc, the network connection will work. However, if you specify a Web service by using the format http://computername:port/servicename.svc, the network connection will fail because computername will translate to an FQDN. To avoid this issue, you can search for the FQDN and replace it with computername.
Cannot Connect to an Intranet Site over a Virtual Private Network
If you are using the emulator over a virtual private network (VPN) connection, you may need to disable proxy settings to connect to intranet sites.
Cannot Connect to an Intranet Site by Using Manual Proxy Settings
If the host computer uses manual proxy settings and you are attempting to connect to intranet sites on the emulator, you may need to enable the Bypass Proxy Server option.
Windows Phone Emulator first attempts to connect to intranet or Internet sites by using any manually configured local area network (LAN) settings. If that fails, it attempts to connect by using other settings.
Windows Phone Emulator attempts to connect by using LAN settings in the following order:
Manual LAN settings (proxy settings)
If proxy settings are in use, and the Bypass Proxy Server option is not set, Windows Phone Emulator cannot connect to intranet sites.
Automatic configuration script
Automatically detected settings
During automatic detection, Windows Phone Emulator detects proxy settings and the Bypass Proxy Server option is enabled by default.
If no Local Area Network (LAN) Settings options are configured, Windows Phone Emulator automatically detects the proxy settings.
Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Visual Studio Settings.
To enable the Bypass Proxy Server option
In Control Panel, open Internet Options.
On Windows 7, you access Internet Options from Control Panel by clicking Network and Internet and then Internet Options.
If you change these settings through the browser instead of Control Panel, settings may not work on some browsers.
In the Internet Properties dialog box, on the Connections tab, click LAN settings.
In the Local Area Network (LAN) Settings dialog box, make sure that Use a proxy server for your LAN is selected.
If there are no proxy settings configured, skip the remaining steps; your host computer is not using manual proxy settings.
Select Bypass proxy server for local addresses.
This setting applies to host names, but not to IP addresses or fully-qualified domain names. To bypass a range of IP addresses or a specific domain name, specify a range of IP addresses to bypass in the proxy exception list, as described in the next procedure. For additional information, see Internet Explorer Uses Proxy Server for Local IP Address Even if the "Bypass Proxy Server for Local Addresses" Option Is Turned On.
To specify a proxy exception list
In the Local Area Network (LAN) Settings dialog box, click Advanced.
Under Exceptions, specify the IP address range to bypass.