Ipify.Wrapper 1.0.0

Suggested Alternatives

neXn.IpifyWrapper

dotnet add package Ipify.Wrapper --version 1.0.0
NuGet\Install-Package Ipify.Wrapper -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ipify.Wrapper" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ipify.Wrapper --version 1.0.0
#r "nuget: Ipify.Wrapper, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Ipify.Wrapper as a Cake Addin
#addin nuget:?package=Ipify.Wrapper&version=1.0.0

// Install Ipify.Wrapper as a Cake Tool
#tool nuget:?package=Ipify.Wrapper&version=1.0.0

Donate

IpifyLibrary

An easy to use library/wrapper/api-link library for your .NET projects.

Enjoying this?

Just star the repo or make a donation.

Donate0

Your help is valuable since this is a hobby project for all of us: we do development during out-of-office hours.

Class Construct

alternate text is missing from this package README image

Usage (Code sample)

C#

//Get IPv4
string myIPv4 = ipifyWrapper.Ipify.GetPublicAddress();
IPAddress myIPv4Address = ipifyWrapper.Ipify.GetPublicIPAddress();
//Get IPv6
string myIPv6 = ipifyWrapper.Ipify.GetPublicv6Address();
IPAddress myIPv6Address = ipifyWrapper.Ipify.GetPublicIPv6Address();

//Get Geolocation Information of an IP
ipifyWrapper.Ipify.GeoIPLocation acc = new ipifyWrapper.Ipify.GeoIPLocation
{
	APIKey = "<YOUR-API-KEY>"
};

ipifyWrapper.Ipify.GeoIPLocation.IpifyGeoInformation ipInformation = acc.GetInformation("<QUERY IP>");
//Get Geolocation Information of Type (ipAddress, email, domain)
ipifyWrapper.Ipify.GeoIPLocation.IpifyGeoInformation ipInformationDomain = acc.GetInformation("<QUERY IP>", ipifyWrapper.Ipify.GeoIPLocation.QueryType.domain);
ipifyWrapper.Ipify.GeoIPLocation.IpifyGeoInformation ipInformationEmail = acc.GetInformation("<QUERY IP>", ipifyWrapper.Ipify.GeoIPLocation.QueryType.email);
ipifyWrapper.Ipify.GeoIPLocation.IpifyGeoInformation ipInformationIpAddress = acc.GetInformation("<QUERY IP>", ipifyWrapper.Ipify.GeoIPLocation.QueryType.ipAddress);

Visual Basic .NET

'Get IPv4
Dim myIPv4 As String = ipifyWrapper.Ipify.GetPublicAddress()
Dim myIPv4IP As IPAddress = ipifyWrapper.Ipify.GetPublicIPAddress()
'Get IPv6
Dim myIPv6 As String = ipifyWrapper.Ipify.GetPublicv6Address()
Dim myIPv6IP As IPAddress = ipifyWrapper.Ipify.GetPublicIPv6Address()

'Get Geolocation Information of an IP
Dim acc As ipifyWrapper.Ipify.GeoIPLocation = New ipifyWrapper.Ipify.GeoIPLocation With {.APIKey = "<YOUR-API-KEY>"}

Dim ipInformation As ipifyWrapper.Ipify.GeoIPLocation.IpifyGeoInformation = acc.GetInformation("<QUERY IP>")
'Get Geolocation Information of Type (ipAddress, email, domain)
Dim ipInformationDomain As ipifyWrapper.Ipify.GeoIPLocation.IpifyGeoInformation = acc.GetInformation("<QUERY IP>", ipifyWrapper.Ipify.GeoIPLocation.QueryType.domain)
Dim ipInformationEmail As ipifyWrapper.Ipify.GeoIPLocation.IpifyGeoInformation = acc.GetInformation("<QUERY IP>", ipifyWrapper.Ipify.GeoIPLocation.QueryType.email)
Dim ipInformationipAddress As ipifyWrapper.Ipify.GeoIPLocation.IpifyGeoInformation = acc.GetInformation("<QUERY IP>", ipifyWrapper.Ipify.GeoIPLocation.QueryType.ipAddress)

Contribution

Pull requests are very welcome.

Copyrights

IpifyLibrary was initially written by Markus Karl Wackermann.

Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 759 12/14/2019