The information in this article applies to:
SUMMARY
The Windows Sockets gethostbyname() API can be used to retrieve IP
addresses assigned to a computer. If the host name sent in the query is
NULL, or the local host name of the computer, gethostbyname() will return
a list of IP addresses assigned to all network cards installed in the
computer.
MORE INFORMATION
Under Windows NT 3.51, the IP address list is in the same order as the
TCP/IP network card binding order; therefore, altering the TCP/IP network
card binding order will indirectly change the IP address order returned by
gethostbyname().
Q164023 Fix for GetHostByName() IP address Order on Local Multihomed MachinesTo influence the order of the IP address list, follow the steps below. These steps assume that you have two network adapter cards installed in a Windows NT 4.0 server computer. The driver names for the network adapters are Netcard1 and Netcard2. The steps below will cause the IP address order to list Netcard2's IP addresses first. WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.
Additional query words: change returned multihomed multi-homed
Keywords : kbnetwork nttcp NTSrvWkst |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |