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.

Enable TCP/IP Networking in the Device Emulator

To enable TCP/IP networking in the Device Emulator

  1. Install the Virtual Machine Network Driver, by installing Virtual PC 2007.

  2. Bind the Device Emulator's network adapter to the host computer's network adapter:

    1. On File menu of the Device Emulator, click Configure.

    2. On the Network tab, check Enable NE2000 PCMCIA network adapter and select Connected network card in the drop-down menu.

    3. Click OK.

    By default, the device emulator obtains an IP address by broadcasting to the DHCP server.

  3. (Optional)Depending on the configuration of the network, you may have to configure your emulator's operating system image with the correct proxy settings.

Enable Private TCP/IP Networking inside a Virtual Machine

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

  1. Install the Microsoft Loopback Adapter on the virtual machine:

    1. Start the Control Panel.

    2. Click Classic View and then double click Add Hardware.

      The wizard appears.

    3. Click Next.

    4. Click Install the hardware that I manually select from a list (Advanced) and then click Next.

    5. In the Common hardware types list, select Network adapters, and then click Next.

    6. In the Manufacturer list, select Microsoft.

    7. In the Network Adapter list, select Microsoft Loopback Adapter.

    8. Click Next.

      The Add Hardware Wizard finishes the installation.

  2. Bind the Device Emulator's network adapter to the loopback adapter:

    1. On the File menu of the Device Emulator, click Configure.

    2. On the Network tab, check Enable NE2000 PCMCIA network adapter and select Microsoft Loopback Adapter in the drop-down menu.

    3. Click OK.

    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.

    Note

    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.

See Also

Other Resources

Configuring and Using the Device Emulator