Show / Hide Table of Contents

Class NetworkUtils

Inheritance
object
NetworkUtils
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Common.Utils
Assembly: DotNetNuke.dll
Syntax
public class NetworkUtils

Constructors

NetworkUtils()

Declaration
public NetworkUtils()

Methods

FormatAsCidr(string, string)

Declaration
public static string FormatAsCidr(string startIP, string subnetMask)
Parameters
Type Name Description
string startIP
string subnetMask
Returns
Type Description
string

GetAddress(string, AddressType)

Declaration
public static string GetAddress(string host, AddressType addressFormat)
Parameters
Type Name Description
string host
AddressType addressFormat
Returns
Type Description
string

GetClientIpAddress(HttpRequest)

Declaration
public static string GetClientIpAddress(HttpRequest request)
Parameters
Type Name Description
HttpRequest request
Returns
Type Description
string

IP2Int(string)

Declaration
public static uint IP2Int(string ipNumber)
Parameters
Type Name Description
string ipNumber
Returns
Type Description
uint

IPtoLong(IPAddress)

Declaration
public static long IPtoLong(IPAddress ip)
Parameters
Type Name Description
IPAddress ip
Returns
Type Description
long

IsIPInRange(string, string, string)

Declaration
public static bool IsIPInRange(string currentIP, string startIP, string subnetmask)
Parameters
Type Name Description
string currentIP
string startIP
string subnetmask
Returns
Type Description
bool

LongToIp(long)

Declaration
public static string LongToIp(long ip)
Parameters
Type Name Description
long ip
Returns
Type Description
string

Network2IpRange(string, out uint, out uint)

Declaration
public static void Network2IpRange(string sNetwork, out uint startIP, out uint endIP)
Parameters
Type Name Description
string sNetwork
uint startIP
uint endIP

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS