zvenny
November 25th, 2008, 02:09 AM
When I check my system for present NICS ...cbNics.Items.Clear();
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
if (nics == null || nics.Length < 1)
{
cbNics.Items.Add("-- No network interfaces found --");
}
foreach (NetworkInterface adapter in nics)
{
cbNics.Items.Add(adapter.Description);
}I would then like to select a specific NIC and scan the attached network for all present IP addresses.
Any suggestion how to do this ?
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
if (nics == null || nics.Length < 1)
{
cbNics.Items.Add("-- No network interfaces found --");
}
foreach (NetworkInterface adapter in nics)
{
cbNics.Items.Add(adapter.Description);
}I would then like to select a specific NIC and scan the attached network for all present IP addresses.
Any suggestion how to do this ?