Microsoft small business knowledge base

Article ID: 981953 - Last Review: May 17, 2010 - Revision: 2.0

On This Page


You have a computer that is running Windows Server 2008 or Windows Server 2008 R2. When a server that has multiple IP addresses tries to ping itself by using its NetBIOS name, an incorrect IP address is returned.


When you perform a ping that uses a name instead of an IP address, the name has to be resolved to an IP address. If the name is that of the server, the IP address is returned as an address from the network adapter that is at the top or bottom of the network bindings order. This usually will be the last network adapter that was installed, and this may not be the interface that you expect to be used. Therefore, the ping command returns an incorrect IP address.

Note When there are multiple addresses on a network adapter, IPv6 addresses are preferred.


To work around this issue, you can change the adapter that the IP address is selected from by moving the preferred adapter to the top or bottom of the binding order. For a hidden adapter that does not appear in the list, you can create a Hosts file that uses the server name and the intended IP address. An example of a hidden adapter is the Microsoft Failover Cluster Virtual Adapter.

How to change the binding order

To change the binding order, follow these steps:
  1. Click Start
    Collapse this imageExpand this image
    start button
    , and then click Control Panel.
  2. Click Network and Internet, and then click Network and Sharing Center.
  3. Change the network adapter settings, depending on your operating system:
    • For Windows Server 2008, click Manage adapter settings.
    • For Windows Server 2008 R2, click Change adapter settings.
  4. Click Organize, point to Layout, and then click Menu bar.
  5. On the Advanced menu, click Advanced Settings.
  6. In the Connections window, select the network adapter that you want.
  7. Move this network adapter to the top of the list or to the bottom of the list. You can do this by using the UP ARROW and DOWN ARROW buttons.
  8. Click OK.

How to change the Hosts file

For a hidden adapter, you cannot change the binding order by using the steps in the "How to change the binding order" section. For hidden adapters, you must add an entry to the Hosts file that uses the intended host name and IP address.

To change the Hosts file, follow these steps:
  1. Click Start
    Collapse this imageExpand this image
    start button
    , and then click All Programs.
  2. Click Accessories, right-click Notepad, and then click Run as administrator.
  3. Collapse this imageExpand this image
    If you are prompted for an administrator password or for confirmation, type the password, or provide confirmation.
  4. At a command prompt, type the following command, and then press ENTER:
    cd %windir%\System32\Drivers\Etc
  5. At a command prompt, type notepad hosts, and then press ENTER.
  6. At the bottom of the file that you opened in step 5, add a new entry for the intended IP address by using the following format:
    For example, for an IP address of for Server01, type the following: Server01
  7. On the File menu, click Save, and then close Notepad.
  8. At the command prompt, type ipconfig /flushdns, and then press ENTER. This reloads the Hosts file without restarting the computer or server.
Note If you want to ping a specific IPv4 address for the network adapter, you can use the -4 parameter. For example, you can use the following command:
ping -4 <host name>
If you want to use IPv4 addresses over a network, you can force Windows to use IPv4 addresses instead of IPv6 addresses. However, we do not recommend that you do this. We strongly recommend that you update the network to use IPv6 addresses. For more information about how to disable IPv6, click the following article number to view the article in the Microsoft Knowledge Base:
929852  ( ) How to disable certain Internet Protocol version 6 (IPv6) components in Windows Vista, Windows 7 and Windows Server 2008


For more information about the IPADDR_ANY parameter, click the following article number to view the article in the Microsoft Knowledge Base:
175396  ( ) Windows Socket Connection from a Multi-Homed Computer

For more information about the getaddrinfo function, visit the following MSDN Web site:
The getaddrinfo function (
For more information about IP address selection, visit the following TechNet blogs:
Source IP address selection on a multi-homed Windows-based computer (

DNS Round Robin and Destination IP address selection (

What is a Microsoft Failover Cluster Virtual Adapter? (

  • Windows Server 2008 R2 Datacenter
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Standard
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Standard
kbip kbexpertiseadvanced kbtshoot kbsurveynew kbprb KB981953
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support