Information that makes life easier when it comes to installing, managing, and using Windows Vista.
Start About FAQ Blogroll Shop

ITsVISTA KB-Link: KB2621067

The first-returned IP address is incorrect when you use the getaddrinfo function on a multi-homed computer that is running Windows Vista, Windows Server 2008, Windows 7, or Windows Server 2008 R2

Consider the following scenario:

  • Multiple network adapters are installed on a computer.
  • One network adapter is configured to use an Automatic Private Internet Protocol Addressing (APIPA) IP address.
  • Another network adapter is configured to use a non-APIPA IP address.
  • The interface metric is smaller on the second network adapter than the metric that is configured on the first network adapter.
  • An application calls the getaddrinfo function on the computer.

In this scenario, the first-returned IP address is the APIPA IP address.


  • This issue prevents network applications that use only the first-returned local IP address by calling the getaddrinfo function (such as a Java-based application that calls the GetLocalHost Java API) from connecting to network resources.
  • This issue occurs on a computer that is running one of the following operating systems:
    • Windows Vista Service Pack 2 (SP2)
    • Windows Server 2008 Service Pack 2 (SP2)
    • Windows 7
    • Windows 7 Service Pack 1 (SP1)
    • Windows Server 2008 R2
    • Windows Server 2008 R2 Service Pack 1 (SP1)
There is a download that resolves this issue. See Hotfixes for details.
32-bit Download: Contact Microsoft
64-Bit Download: Contact Microsoft

For more information on this issue, including potential causes, workarounds, and resolutions, see: Microsoft KB Article KB2621067.

Get notified of new posts for FREE via RSS or E-mail

Subscribe to ITsVISTA!

Related Posts