GetHostByAddress() Calls May Not Work on Windows CE (278445)



The information in this article applies to:

  • Microsoft Windows CE 2.11 for the Handheld PC

This article was previously published under Q278445

SYMPTOMS

Calling the GetHostByAddress function in Windows CE 2.11 may not work if you have either the value 10 or 100 included in one of the segments of your IP address.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was first corrected in Microsoft Windows CE 3.0.

MORE INFORMATION

This behavior is caused by a problem in the Windows CE 2.11 TCP/IP stack. The numerical IP address is converted into characters when packets are sent to resolve Domain Name System (DNS) names. However, the conversion does not work if you have either 10 or 100 included in the segments of your IP address. 10 and 100 are incorrectly converted to ":" and ":0" because of a problem in the conversion process.

Incorrect characters in the packet cause DNS name requests not to work, causing the GetHostByAddress function not to succeed. This problem only affects requests to resolve DNS names.

Modification Type:MajorLast Reviewed:10/14/2002
Keywords:kbenv kbprb KB278445