neXn.Ipify 4.0.0

dotnet add package neXn.Ipify --version 4.0.0
                    
NuGet\Install-Package neXn.Ipify -Version 4.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="neXn.Ipify" Version="4.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="neXn.Ipify" Version="4.0.0" />
                    
Directory.Packages.props
<PackageReference Include="neXn.Ipify" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add neXn.Ipify --version 4.0.0
                    
#r "nuget: neXn.Ipify, 4.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.
#:package neXn.Ipify@4.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=neXn.Ipify&version=4.0.0
                    
Install as a Cake Addin
#tool nuget:?package=neXn.Ipify&version=4.0.0
                    
Install as a Cake Tool

Donate

NuGet NuGet Downloads .NET C# License

neXn.Ipify

A lightweight modern .NET client for the ipify and Geo IPify APIs.

Features

  • Retrieve your public IPv4 or IPv6 address
  • Query Geo IPify geolocation information
  • Async-first API
  • CancellationToken support
  • Built on HttpClient
  • Uses System.Text.Json
  • No unnecessary third-party runtime dependencies
  • Designed for .NET 10

Public IP Address

using System.Net;
using neXn.Ipify;

using IpifyClient client = new();

IPAddress address = await client.GetPublicIPAddressAsync();

Console.WriteLine(address);

The universal ipify endpoint automatically returns the public IPv4 or IPv6 address used for the request.

Geo IPify

Geo IPify requires an API key.

using neXn.Ipify;

using IpifyClient client = new("<YOUR_API_KEY>");

IpifyGeoInformation information =
    await client.GetGeoInformationAsync(
        "8.8.8.8",
        IpifyClient.QueryType.IpAddress);

Console.WriteLine(information);

Supported query types:

IpifyClient.QueryType.IpAddress
IpifyClient.QueryType.Email
IpifyClient.QueryType.Domain

If no query value is supplied, Geo IPify returns information for the address making the request:

IpifyGeoInformation information =
    await client.GetGeoInformationAsync();

About ipify

ipify provides a simple public IP address API.

Geo IPify extends it with IP geolocation and related information.

License

Licensed under the MIT License.

Disclaimer

This is an independent open-source project and is not affiliated with, endorsed by, or sponsored by ipify.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

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
4.0.0 49 9/16/2026