FiftyOne.IpIntelligence.Shared
4.5.155
Prefix Reserved
dotnet add package FiftyOne.IpIntelligence.Shared --version 4.5.155
NuGet\Install-Package FiftyOne.IpIntelligence.Shared -Version 4.5.155
<PackageReference Include="FiftyOne.IpIntelligence.Shared" Version="4.5.155" />
<PackageVersion Include="FiftyOne.IpIntelligence.Shared" Version="4.5.155" />
<PackageReference Include="FiftyOne.IpIntelligence.Shared" />
paket add FiftyOne.IpIntelligence.Shared --version 4.5.155
#r "nuget: FiftyOne.IpIntelligence.Shared, 4.5.155"
#:package FiftyOne.IpIntelligence.Shared@4.5.155
#addin nuget:?package=FiftyOne.IpIntelligence.Shared&version=4.5.155
#tool nuget:?package=FiftyOne.IpIntelligence.Shared&version=4.5.155
51Degrees IP Intelligence Engines
Pipeline API
Introduction
This repository contains the IP intelligence engines for the .NET implementation of the Pipeline API.
The specification is also available on GitHub and is recommended reading if you wish to understand the concepts and design of this API.
Dependencies
Visual Studio 2019 or later is recommended. Although Visual Studio Code can be used for working with most of the projects.
The core IP intelligence projects are written in C and C++. The Pipeline engines are written in C# and target .NET Standard 2.0. Example and test projects mostly target .NET 8.0 though in some cases, projects are available targeting other frameworks.
For runtime dependencies, see our
dependencies
page. The ci/options.json file lists the tested and packaged .NET versions
and operating systems automatic tests are performed with. The solution will
likely operate with other versions.
Data
The API does detections using a local (on-premise) data file or cloud service (coming soon).
On-Premise
In order to perform IP intelligence on-premise, you will need to use a data file.
The scripts in the data repository, which is the cxx/data submodule, download the free 'Lite' data file, for example with pwsh cxx/data/get-data-files.ps1 51Degrees-LiteV41.ipi from the repository root. Otherwise contact us to obtain an 'Enterprise' data file.
Tests that need a data file locate it in the following order:
- The "_51DEGREES_IPI_PATH" environment variable, which can be set to an explicit path to the data file. The legacy "IPINTELLIGENCEDATAFILE" environment variable is also still supported, and is checked after "_51DEGREES_IPI_PATH".
- A search of the folder hierarchy, walking up from the working directory, for the expected data file name.
- The free 'Lite' data file in its expected location, which is
cxx/data/ip-intelligence.
Cloud (coming soon)
You will require resource keys to use the Cloud API, as described on our website. Get resource keys from our configurator, see our documentation on how to use this.
The cloud property tiers changed in May 2026. Of the IP intelligence properties the examples display, the free tier includes only Country, LocationConfidence, Ip and IpV6, with a paid subscription needed for the rest, such as CountryCode, Region, Town, RegisteredName, Latitude and Longitude. A resource key selecting only the free tier properties can be created here, whilst this configuration also includes the paid properties used by the examples. See our pricing page to get a paid subscription with more properties.
Examples and tests read the resource key from an environment variable called "_51DEGREES_RESOURCE_KEY". The legacy environment variable names "51D_RESOURCE_KEY" and "SUPER_RESOURCE_KEY" are still supported, with the aligned "_51DEGREES_RESOURCE_KEY" name checked first.
Solutions and projects
- FiftyOne.IpIntelligence - Ip intelligence engines and related projects.
- FiftyOne.IpIntelligence.Engine.OnPremise - .NET implementation of the IP intelligence on-premise engine.
- FiftyOne.IpIntelligence.Shared - Shared classes used by the IP intelligence engines.
- FiftyOne.IpIntelligence - Contains IP intelligence engine builders.
- FiftyOne.IpIntelligence.Cloud - A .NET engine which retrieves IP intelligence results by consuming the 51Degrees Cloud service. This can be swapped out with either the on-premise engine seamlessly.
Installation
Nuget
The easiest way to install is to use NuGet to add the reference to the package:
Install-Package FiftyOne.IpIntelligence
Build from Source
IP Intelligence on-premise uses a native binary (i.e. compiled from C code to target a specific platform/architecture). The NuGet package contains several binaries for common platforms. However, in some cases, you'll need to build the native binaries yourself for your target platform. This section explains how to do this.
Pre-requisites
- Install C build tools:
- Windows:
- You will need either Visual Studio 2022 or the C++ Build Tools installed.
- Minimum platform toolset version is
v143 - Minimum Windows SDK version is
10.0.18362.0
- Minimum platform toolset version is
- Linux/MacOS:
sudo apt-get install g++ make libatomic1
- You will need either Visual Studio 2022 or the C++ Build Tools installed.
- Windows:
- If you have not already done so, pull the git submodules that contain the
native code:
git submodule update --init --recursive
Visual studio should now be able to build the native binaries as part of its normal build process.
Packaging
You can package a project into NuGet *.nupkg file by running a command like:
dotnet pack [Project] -o "[PackagesFolder]" /p:PackageVersion=0.0.0 -c [Configuration] /p:Platform=[Architecture]
⚠️ Notes on packaging FiftyOne.IpIntelligence.Engine.OnPremise
📝 Using AnyCPU might prevent the unmanaged (C++) code from being built into .Native.dll library. Use x64/arm64 specifically.
📝 If creating cross-platform package from multiple native dlls, put all 4x FiftyOne.IpIntelligence.Engine.OnPremise.Native.dll into respective folders:
../
macos/
arm64/
x64/
linux/
x64/
windows/
x64/
and add to the packaging command:
/p:BuiltOnCI=true
related CI scripts:
BuiltOnCIvar:- [https://github.com/51Degrees/common-ci/blob/main/dotnet/build-project-core.ps1]
- [https://github.com/51Degrees/common-ci/blob/main/dotnet/build-package-nuget.ps1]
- [https://github.com/51Degrees/common-ci/blob/main/dotnet/build-project-framework.ps1]
- [https://github.com/51Degrees/51degrees-dotnet/blob/main/ci/run-performance-tests.ps1]
- Copying native binaries:
- [https://github.com/51Degrees/51degrees-dotnet/blob/main/ci/build-package.ps1]
Strong naming
We currently do not strong name assemblies due to downsides for developers. The main of which is that .NET Framework on Windows enables strict loading of assemblies once an assembly is strong named. A strong-named assembly reference must exactly match the version of the loaded assembly, forcing developers to configure binding redirects when using the assembly.
If it is absolutely critical for your use case to integrate a strong-named assembly - please create a feature request issue.
Examples
Examples can be found in ip-intelligence-dotnet-examples repository.
Tests
Tests can be found in the Tests/ folder. These can all be run from within
Visual Studio or by using the dotnet test command line tool.
Some tests require additional resources to run. These will either fail or return an 'inconclusive' result if these resources are not provided.
- Some tests require an 'Enterprise' data file. This can be obtained by purchasing a license.
- Tests using the Cloud service require resource keys with specific properties. A license is required in order to access some properties.
Project documentation
For complete documentation on the Pipeline API and associated engines, see the 51Degrees documentation site.
Find out more
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- FiftyOne.Pipeline.Engines.FiftyOne (>= 4.5.129)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on FiftyOne.IpIntelligence.Shared:
| Package | Downloads |
|---|---|
|
FiftyOne.IpIntelligence.Engine.OnPremise
IP Intelligence and IP geolocation for .NET and C#. Finds an IP address's likely location (country, region, town, and coordinates), connection type, and network, reading a data file on your server. Network details include the Autonomous System Number (ASN). This package is the on-premise engine for the 51Degrees Pipeline API. An alternative to MaxMind and IPinfo. |
|
|
FiftyOne.IpIntelligence.Cloud
IP Intelligence and IP geolocation for .NET and C#. Finds an IP address's likely location (country, region, town, and coordinates), connection type, and network, using the 51Degrees cloud service with a Resource Key. Network details include the Autonomous System Number (ASN). This package is the cloud engine for the 51Degrees Pipeline API, for IP Intelligence without running an on-premise engine. An alternative to MaxMind and IPinfo. |
|
|
FiftyOne.IpIntelligence.Translation
Translation engines which take country code lists provided by FiftyOne.IpIntelligence and translate into country names in the requested language. |
|
|
FiftyOne.IpIntelligence.Countries
A post-processing flow element that combines weighted country code results with all possible country codes from metadata, producing flat ordered lists. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.5.155 | 0 | 11/4/2026 |
| 4.5.154 | 470 | 10/30/2026 |
| 4.5.153 | 265 | 10/29/2026 |
| 4.5.152 | 288 | 10/28/2026 |
| 4.5.151 | 250 | 10/26/2026 |
| 4.5.150 | 382 | 10/26/2026 |
| 4.5.149 | 285 | 10/23/2026 |
| 4.5.148 | 240 | 10/22/2026 |
| 4.5.147 | 223 | 10/21/2026 |
| 4.5.146 | 210 | 10/21/2026 |
| 4.5.145 | 581 | 10/16/2026 |
| 4.5.144 | 240 | 10/15/2026 |
| 4.5.143 | 243 | 10/14/2026 |
| 4.5.142 | 314 | 10/9/2026 |
| 4.5.141 | 420 | 10/3/2026 |
| 4.5.140 | 284 | 10/1/2026 |
| 4.5.139 | 229 | 10/1/2026 |
| 4.5.138 | 857 | 9/30/2026 |
| 4.5.137 | 294 | 9/25/2026 |
| 4.5.136 | 230 | 9/25/2026 |