[]
        
(Showing Draft Content)

C1.Web.Api.Visitor.Providers.Ip2LocationProvider.LocationFromIPAddress

LocationFromIPAddress Method

LocationFromIPAddress(string)

Getting geographical location from an IP Address. It will automatically detect the given IP Address is IPv4 or IPv6. If the given IP is in localhost, there's no location can be found.

Declaration
public GeoLocation LocationFromIPAddress(string ipAddress)
Parameters
Type Name Description
string ipAddress

a long number represent an IP Address

Returns
Type Description
GeoLocation

return a GeoLocation object

Implements