How to: Enable TCP/IP Networking on the Device Emulator
When you enable TCP/IP networking on the Device Emulator, the emulator can connect to the Internet and synchronize with Microsoft Exchange without cradling.
This topic describes how to enable TCP/IP networking without using ActiveSync or Windows Mobile Device Center (in Windows Vista). It also describes how to enable private TCP/IP networking on an emulator running inside a virtual machine.
To enable TCP/IP networking in the Device Emulator
Install the Virtual Machine Network Driver, by installing Virtual PC 2007.
Bind the Device Emulator's network adapter to the host computer's network adapter:
On File menu of the Device Emulator, click Configure.
On the Network tab, check Enable NE2000 PCMCIA network adapter and select Connected network card in the drop-down menu.
By default, the device emulator obtains an IP address by broadcasting to the DHCP server.
(Optional)Depending on the configuration of the network, you may have to configure your emulator's operating system image with the correct proxy settings.
The procedure inside is different because Virtual PC and Virtual Server block the Virtual Switch network driver running inside the virtual machine from receiving broadcast network packets for security reasons. Therefore, Device Emulators running inside the virtual machine cannot acquire an IP address from the network's DHCP server.
To enable private TCP/IP networking on a Device Emulator running inside a virtual machine
Install the Microsoft Loopback Adapter on the virtual machine:
Start the Control Panel.
Click Classic View and then double click Add Hardware.
The wizard appears.
Click Install the hardware that I manually select from a list (Advanced) and then click Next.
In the Common hardware types list, select Network adapters, and then click Next.
In the Manufacturer list, select Microsoft.
In the Network Adapter list, select Microsoft Loopback Adapter.
The Add Hardware Wizard finishes the installation.
Bind the Device Emulator's network adapter to the loopback adapter:
On the File menu of the Device Emulator, click Configure.
On the Network tab, check Enable NE2000 PCMCIA network adapter and select Microsoft Loopback Adapter in the drop-down menu.
The virtual machine and the Device Emulator are assigned automatic private IP addresses (169.254.xxx.xxx) and can only communicate with each other over the private network created by the loopback adapter. This is useful when you are running the emulator inside a virtual machine and want to communicate with server applications, such as Internet Information Services (IIS) and Exchange, inside the virtual machine.
In this case, the Device Emulator running inside the virtual machine cannot communicate with the Internet or the computer that is running the virtual machine.