[]
        
(Showing Draft Content)

C1.Web.Api.Visitor.Utils.IpAddressUtils

IpAddressUtils Class

An Utils class help to working with IP Address.

Inheritance
IpAddressUtils
Namespace: C1.Web.Api.Visitor.Utils
Assembly: C1.AspNetCore.Api.Visitor.dll
Syntax
public class IpAddressUtils

Constructors

Name Description
IpAddressUtils()

Methods

Name Description
IPV4ToNumber(string)

Convert an IPv4 Address string to integer This method copied from https://lite.ip2location.com/faqs

IPV6ToNumber(string)

Convert ip address string into long number. This method copied from https://lite.ip2location.com/faqs

IsIpAddress(string)

Check whether given IP Address is a valid IP Address or not.

IsIpAddressV4(string)

Conver an IP Address from string to integer.

IsIpAddressV6(string)

Check whether given IP Address is IPv6 or not.

IsPrivate(string)

Check if given IP Address is from local machine or not.