- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
public static bool IpCheck(String ip)
{
String [] octs = ip.Split(new char[] { '.' });
try
{
for (int n = 0; n < 4; n++)
{
byte b = Convert.ToByte(octs[n]);
}
return true;
}
catch (Exception)
{
return false;
}
}