ok.. heres the deal.
I'm creating a listbox (actually 2) that contains the IP Address (and MAC address).
Listbox could contain 1 or more items, depending on the number of physical interfaces.
Listbox value population is ok, pulling from Win32_NetworkAdapter.
Problem: I'd like the default (i.e. selected) option to be the first adapter connected to a given subnet. I can populate all the options just fine. Also, there's no problem determining which adapter(s), if any, are connected to a given subnet, but the problem is how to set the default to the desired adapter.
Why?
This has to be dynamic, because many hosts have multiple native adapters, and some have at least one multi-port NICs installed. (one machine has 18 physical ports! -- two built in to the motherboard, and 4 4-port adapters) Unfortunately, there is no way to know for certain, in advance, which physical port(s) is connected to a given subnet.
Any help would be appreciated.
I'm creating a listbox (actually 2) that contains the IP Address (and MAC address).
Listbox could contain 1 or more items, depending on the number of physical interfaces.
Listbox value population is ok, pulling from Win32_NetworkAdapter.
Problem: I'd like the default (i.e. selected) option to be the first adapter connected to a given subnet. I can populate all the options just fine. Also, there's no problem determining which adapter(s), if any, are connected to a given subnet, but the problem is how to set the default to the desired adapter.
Why?
This has to be dynamic, because many hosts have multiple native adapters, and some have at least one multi-port NICs installed. (one machine has 18 physical ports! -- two built in to the motherboard, and 4 4-port adapters) Unfortunately, there is no way to know for certain, in advance, which physical port(s) is connected to a given subnet.
Any help would be appreciated.