Web API Core | ComponentOne
C1.Web.Api.Visitor.Providers Namespace / Ip2LocationProvider Class / LocationFromIPAddress Method
a System.Int64 number represent an IP Address

In This Topic
    LocationFromIPAddress Method (Ip2LocationProvider)
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Function LocationFromIPAddress( _
       ByVal ipAddress As String _
    ) As GeoLocation
    public GeoLocation LocationFromIPAddress( 
       string ipAddress
    )

    Parameters

    ipAddress
    a System.Int64 number represent an IP Address

    Return Value

    See Also