I see, thanks. I did a bit of ad-hoc tests to see the metrics in both GetAdapterAddresses and GetIpForwardTable, and while the values between the two are different on Windows (unlike Wine), loopback has the higher value in GetIpForwardTable on Windows as well. My slight concern is that '-1' value looks special and not something I ever observe on Windows. Maybe we'd ideally go with some other value, like INT_MAX for such cases, will that work for the bug? We get '-1' on Linux now for some cases, e. g., here it is the case for interfaces not connected to network (Windows still has low values for those interfaces and e. g. my unplugged 'eth0' appears first in GetAdaptersAddresses with metric of 5). I guess we'd ideally want to fixup those too for some int-positive values? But just setting loopback metric to INT_MAX should work too I guess to fix the present bug, '-1' for other interfaces looks not directly related. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9769#note_125811