mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-05 15:33:47 +00:00
19 lines
379 B
C#
19 lines
379 B
C#
using System;
|
|
using System.Net;
|
|
|
|
namespace qController
|
|
{
|
|
public class IPHelper
|
|
{
|
|
public IPHelper()
|
|
{
|
|
}
|
|
|
|
public static bool IsValidAddress(string ipString){
|
|
if ((ipString.Split('.').Length - 1) != 3) return false;
|
|
IPAddress address;
|
|
return IPAddress.TryParse(ipString, out address);
|
|
}
|
|
}
|
|
}
|