InetAddress.getLocalHost() returns APIPA/link-local address in a Windows 2008 SP2 or later version Windows OS with multiple-NICs.
Chris Hegarty
chris.hegarty at oracle.com
Thu Dec 1 02:46:04 PST 2011
On 01/12/2011 10:21, Alan Bateman wrote:
> On 01/12/2011 01:13, Charles Lee wrote:
>>
>> Yes. In the customer scenario, the return value is 169.254.*.*/16 address.
> Sorry for all the questions but I'm still scratching my head as to how
> the lookup of the current host's name ends up with a list that includes
> these addresses. Is it definitely a behavior change in 2008 R2 or is it
> possible that the customer has configured the hosts file this way?
Yes, it would be nice to get the answer to this to understand if this is
a change in behavior in the most recent Windows versions, or if it is a
configuration issue.
I'll run some tests too, to see if I can reproduce the issue.
-Chris.
>
> -Alan.
More information about the net-dev
mailing list