Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to load host entries into Windows CE device


Summary

Host name resolution is the process of mapping a host name to an IP address. Windows CE TCP/IP can use HOST entries stored in the registry to resolve host names.


You can load HOST entries into the following registry. Other host addresses found by DNS and WINS servers are also cached in the same registry key.

HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts\<host name>
You need to create a host name key for each host entry you want to reference.

↑ Back to the top


More Information

Host-name-specific values are listed under the following subkeys for each host name:

ipaddr

  • Value type: Binary
  • Description: An IP address in hexadecimal format, corresponding to the <host name>.
  • Example: 9D 37 C8 07

aliases

  • Value type: Multi-string
  • Description: An optional alias for the host name.
  • Example: hostnamealias

ExpireTime

  • Value type: Binary
  • Description: Time-To-Live value of the host entry in milliseconds. If not present, the host entry is permanent.
PPP_PEER is a special host name stored in the registry.

For additional information about PPP_PEER, click the following article number to view the article in the Microsoft Knowledge Base:

183988 How to retrieve the IP address of the remote PPP peer

A host name of a local device is stored in the following registry:
HKEY_LOCAL_MACHINE\Ident

Name

  • Value type: String
  • Description: Name of local host.
  • Example: MYHPC

↑ Back to the top


Keywords: kbhowto, kbip, kbnetwork, kbwinsock, kb

↑ Back to the top

Article Info
Article ID : 199370
Revision : 1
Created on : 1/7/2017
Published on : 6/22/2014
Exists online : False
Views : 397