Convert IP address to long integer

Namespace: DotNetNuke.Common.Utils
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static long IPtoLong(
	IPAddress ip
)
Visual Basic
Public Shared Function IPtoLong ( 
	ip As IPAddress
) As Long

Parameters

ip
Type: System.Net..::..IPAddress
The ip address

Return Value

IP Address in long

See Also