Microsoft KB Archive/831137

= IP addresses may not appear in IIS 6.0 after you install Application Center 2000 =

Article ID: 831137

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Services 6.0

-





SYMPTOMS
You may see only one IP address that is available for binding to a Microsoft Internet Information Services (IIS) 6.0 Web site. This problem may occur after you install Microsoft Application Center 2000 Service Pack 2 (SP2) on a computer that is running the Microsoft Windows Server 2003 operating system, regardless of how many IP addresses are bound to network adapters on the server.

Note Network adapters are also known as network interface cards or NICs.

You can view or change the IP address bindings through IIS Manager. In IIS Manager, you can right-click a Web site and then click Properties. On the Web Sites tab, you may see only one address in the IP address list.



CAUSE
When you install Application Center 2000, Application Center 2000 adds new entries to the HOSTS file. The HOSTS file is located in the %WINDIR%\System32\Drivers\Etc folder. These entries are similar to the following:


 * 1) Beginning of Microsoft Application Center section. DO NOT MODIFY.

192.128.253.1     ### END

192.128.253.1    . .com ### END


 * 1) End of Microsoft Application Center section.

In this sample entry, 192.128.253.1 is the only address that appears in the IP Address list in IIS Manager, together with all unassigned. This behavior occurs because IIS Manager uses either the gethostbyname function or the gethostbyaddr function to determine the IP addresses that are bound on the server. These functions try to resolve the host name by using name services in the following order:
 * 1) HOSTS file
 * 2) DNS server
 * 3) Windows Internet Name Service (WINS) server
 * 4) Local broadcasting
 * 5) LMHOSTS file

After the name has been resolved by using one of these services, resolution stops. In this case, because the name can be resolved by using the entries in the HOSTS file, no other services are queried.

For additional information about how the gethostbyname function resolves a host name, click the following article number to view the article in the Microsoft Knowledge Base:

192128 gethostbyname retrieves only one IP address from WINS



WORKAROUND
To work around this problem, use one of the following methods:  Add all bound IP addresses to the HOSTS file. For example, if the server has both 192.128.253.1 and 192.128.253.2 bound to the network adapter, the entries in the HOSTS file will appear similar to the following:

192.128.253.2


 * 1) Beginning of Microsoft Application Center section. DO NOT MODIFY.

192.128.253.1     ### END

192.128.253.1    . .com ### END


 * 1) End of Microsoft Application Center section.

 Manually enter the IP address in the IP address list in IIS Manager. The IP address must be a valid IP address that is bound to a network adapter in the server.

