public static bool IsIP(string IP)
{
var iCount = IP.Split(\'.\').Count();
if (iCount != 4)
{
return false;
}
IPAddress ip;
if (IPAddress.TryParse(IP, out ip))
{
return true;
}
else
{
return false;
}
}
public static bool IsIP(string IP)
{
var iCount = IP.Split(\'.\').Count();
if (iCount != 4)
{
return false;
}
IPAddress ip;
if (IPAddress.TryParse(IP, out ip))
{
return true;
}
else
{
return false;
}
}