On windows networking resolver we check if the primary interface could not be retrieved. If it's not retrieved, we make an FFI call, check that the retrieved interface has a valid ip and it's assigned as the primary interface. Method find_primary_interface at line 126 in the Windows networking resolver.