using System.Net.NetworkInformation;
using System.Net;
NetworkBrowser nb1 = new NetworkBrowser();
string[] PCIP = new string[250];
string[] PCIP1 = new string[250];
int i = 0;
foreach (string pc in nb1.getNetworkComputers())
{
PCIP[i] = pc;
IPAddress[] addresslist = Dns.GetHostAddresses(pc);
foreach (IPAddress address in addresslist)
{
PCIP1[i] = address.ToString();
}
i++;
}
using System.Net;
NetworkBrowser nb1 = new NetworkBrowser();
string[] PCIP = new string[250];
string[] PCIP1 = new string[250];
int i = 0;
foreach (string pc in nb1.getNetworkComputers())
{
PCIP[i] = pc;
IPAddress[] addresslist = Dns.GetHostAddresses(pc);
foreach (IPAddress address in addresslist)
{
PCIP1[i] = address.ToString();
}
i++;
}
how can i call the object NetworkBrowser, i can't find it
ReplyDelete