InetAddress.getLocalHost() returns APIPA/link-local address in a Windows 2008 SP2 or later version Windows OS with multiple-NICs. (original) (raw)
Alan Bateman Alan.Bateman at oracle.com
Tue Nov 29 01:47:38 PST 2011
- Previous message: InetAddress.getLocalHost() returns APIPA/link-local address in a Windows 2008 SP2 or later version Windows OS with multiple-NICs.
- Next message: InetAddress.getLocalHost() returns APIPA/link-local address in a Windows 2008 SP2 or later version Windows OS with multiple-NICs.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 29/11/2011 02:11, Charles Lee wrote:
You are right. The ipv4 will appear in front of ipv6, but the order of ipv4 or ipv6 (separately) will not be sorted. Right, but it means that if the host has at least one IPv4 address then it will be chosen and the IPv6 addresses will be ignored. I should say that I don't have an issue with doing something about this but I'm trying to understand how this issue arises. I'm guessing that either the host is IPv6 only or that somehow the host name is resolving to a list that includes a 169.254.0.0/16 address.
-Alan. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20111129/db896a96/attachment.html
- Previous message: InetAddress.getLocalHost() returns APIPA/link-local address in a Windows 2008 SP2 or later version Windows OS with multiple-NICs.
- Next message: InetAddress.getLocalHost() returns APIPA/link-local address in a Windows 2008 SP2 or later version Windows OS with multiple-NICs.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]