mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-04 15:07:55 +00:00
fe8bd257d1
- No more UDP - Lots of random refactoring as well
20 lines
478 B
C#
20 lines
478 B
C#
//IP Address verification
|
|
//IMPLEMENT A ISREACHABLE METHOD TO BE ABLE TO DISPLAY ONLINE QINSTANCES
|
|
using System.Net;
|
|
|
|
namespace qController.Communication
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|