Method | Description | |
---|---|---|
GetIpAddress ( string text ) : |
Takes a domain name, or IP address, and returns the Correct IP address. If multiple IP addresses are found, the first one is returned
|
|
IP2Long ( string ip ) : long |
Converts a string IP address into MySQL INET_ATOA long
|
|
IsLanIP ( |
Returns whether the supplied IP Address in on the local Lan network http://stackoverflow.com/questions/7232287/check-if-ip-is-in-lan-behind-firewalls-and-routers |
|
IsLocalIpAddress ( string host ) : bool |
Returns whether the IP address specified is a Local Ip Address
|
|
LongToIP ( long longIP ) : string |
Converts a long to an IP Address
|
|
TryGetIpAddress ( string text, |
Takes a domain name, or IP address, and returns the Correct IP address. If multiple IP addresses are found, the first one is returned
|
|
ValidateAddressAsync ( string address, |
Asnychronously validates a hostname to an IPAddress
|
Method | Description | |
---|---|---|
CheckMask ( |
public static GetIpAddress ( string text ) : |
||
text | string | Domain name or IP Address |
return |
public static IP2Long ( string ip ) : long | ||
ip | string | THe IP Address |
return | long |
public static IsLanIP ( |
||
address | ||
return | bool |
public static IsLocalIpAddress ( string host ) : bool | ||
host | string | The ip address to check |
return | bool |
public static LongToIP ( long longIP ) : string | ||
longIP | long | |
return | string |
public static TryGetIpAddress ( string text, |
||
text | string | |
Ip | ||
return | bool |
public static ValidateAddressAsync ( string address, |
||
address | string | The hostname to validate |
expectedAddress | The expected Ip Address | |
return | Task |