Partager via


Emulator Configuration

If your platform has a minimal IABASE configuration, the emulators in your SDK will not work, due to failure of the TCP/IP transport protocol. For this method to work properly, you must make additional configuration changes on your development workstation before building your SDK.

For information about the IABASE configuration, see Platform Modification. For information about configuring download services for the Emulator, see Emulator Download Service.

The emulator acts as a router and optionally as a DHCP server for the guest OS, so you must configure the guest OS to have an IP address using the format 192.168.131.x and static gateway address of 192.168.131.254. You can do this either by using DHCP or static IP address configuration.

DHCP permits you to run multiple emulators simultaneously, and is the preferred method. To configure DHCP, include the Local Area Network component if your platform is display-based. If your platform is headless, include the NDIS component.

Static IP address configuration permits TCP/IP to function without DHCP, but using this method limits you to running only one emulator at a time.

To configure static IP addresses

  1. Open the Platform.reg file, located at %_WINCEROOT%\Public\<Platform Name>\Reldir\<Configuration>.

  2. Search for the following registry key.

    HKEY_LOCAL_MACHINE\Comm\MyEthernetAdapter\Parms\TcpIp
    "EnableDHCP"=dword:1
    "DefaultGateway"=""
    "UseZeroBroadcast"=dword:0
    "IpAddress"="0.0.0.0"
    "Subnetmask"="0.0.0.0"
    
  3. Set EnableDHCP to 0.

  4. Set IpAddress to an address using the format 192.168.131.x.

  5. Set Subnetmask to 255.255.255.0.

  6. Set DefaultGateway to 192.168.131.254.

See Also

NDIS Driver Registry Settings

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.