h_addr_list returns the list of IPv4 addresses on my system (both physical and virtual adapters). The order in which the list is populated co-incides with the order in which they are listed by ipconfig /all. If I change the order of adapters in control panel, I can see that the order followed in ipconfig /all output as well as in the h_addr_list also changes.
The problem I'm facing now is that on a couple of windows 8 physical machines on which VMware is installed, the order of addresses in h_addr_list isn't changing when I change the order in control panel. The change in order has an impact on the order of adapters in ipconfig /all output but not on the order of adresses in h_addr_list. Order is important to me because, my application returns the first IPV4 address found in the h_addr_list.
Please help.