Configuring the Gateway Registry (Windows CE 5.0)

Send Feedback

In the following procedure, modifying the project registry file makes a persistent change to your Gateway run-time image.

To configure the registry for your gateway

  1. From the Workspace window, choose the ParameterView tab.

  2. Expand the <OS design name> parameters node and navigate to the %_WINCEROOT%\CEPC\Project Specific Files folder.

  3. Double-click project.reg to open the file.

  4. Add the following registry key and values to the bottom of the file:

    [HKEY_LOCAL_MACHINE\Comm\ConnectionSharing]
    "EnableAddressTranslation"=dword:1
    "EnableDhcpAllocator"=dword:1
    "EnableDnsProxy"=dword:1
    "PublicInterface"="VMINI1"
    "PrivateInterface"="PCI\\<private network interface>"
    [HKEY_LOCAL_MACHINE\Comm\PCI\<private network interface>\Parms\Tcpip]
    "IPAddress"="192.168.0.1"
    "SubnetMask"="255.255.255.0"
    "EnableDHCP"=dword:0
    "DhcpMaxRetry"=dword:ffffffff
    

    In this example, you are using the VMINI adapter for the public interface and PCI\NE20001 for the private interface. You are also assigning a static IP address of 192.168.0.1 to the private interface.

    Note   If you use a different adapter for your public interface, you must replace the VMINI1 value for the PublicInterface key with the appropriate adapter name.

    The static IP address of 192.168.0.1 is also used in the Firewall rules as the default for the SourcePrivate registry value. If you want to use a different static address for the private interface, you must change the SourcePrivate registry value to match this address. For more information, see Default IP Firewall Rules.

    The <Private Interface Name> and <Public Interface Name> interface names depend on the network adapters the gateway uses. For example, if it uses an NE2000-compatible network adapter for the private interface, you would type:

    "PrivateInterface"="PCI\\NE20001"
    

    When configuring the registry settings for TCP/IP, you must also insert the name of the private interface, as shown in the following example:

    [HKEY_LOCAL_MACHINE\Comm\PCI\NE20001\Parms\Tcpip]
    

    For information about the supported network cards and interface names, see the Driver Support section under Gateway Hardware Requirements.

    Note   Interface or adapter names are a common source of errors when creating an OS design. To verify the interface or adapter names and the IP addresses for these adapters on your target device after downloading the image, type s ipconfig /d /all in the Target Control window of Platform Builder. The Debug output window displays the IP address of the target device and shows the interface or adapter names.

  5. Save and close the file.

See Also

Customizing a Gateway | How to Develop a Gateway | Creating a Gateway Run-time Image for a CEPC

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.