string[] GenerateIps()
{
ArrayList ips = new ArrayList();
string a=null,b=null,c=null,d=null;
for(int intA = 1; intA < 255; intA++)
{
a = intA.ToString();
for(int intB = 0; intB < 255; intB++)
{
b = intB.ToString();
for(int intC = 0; intC < 255; intC++)
{
c = intC.ToString();
for(int intD = 0; intD < 255; intD++)
{
d = intD.ToString();
ips.Add(a + "." + b + "." + c + "." + d);
}
ips.Add(a + "." + b + "." + c + "." + d);
}
ips.Add(a + "." + b + "." + c + "." + d);
}
ips.Add(a + "." + b + "." + c + "." + d);
}
return (string[]) ips.ToArray(typeof(string));
}