IPRangeLookup 1.0.3

dotnet add package IPRangeLookup --version 1.0.3
NuGet\Install-Package IPRangeLookup -Version 1.0.3
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="IPRangeLookup" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IPRangeLookup --version 1.0.3
#r "nuget: IPRangeLookup, 1.0.3"
#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 IPRangeLookup as a Cake Addin
#addin nuget:?package=IPRangeLookup&version=1.0.3

// Install IPRangeLookup as a Cake Tool
#tool nuget:?package=IPRangeLookup&version=1.0.3


This library is designed to optimize the lookup of an IP address in a set of IP Ranges. It supports both IPv4 and IPv6 addresses. It provides methods for checking if an IP address is a part of Public IP Ranges for M365 endpoints.

Usage Examples

  1. To check if an IP address is present in Public IP Ranges.

Eg: IPSearch ipSearch=new IPSearch(); bool result=ipSearch.Contains(""); //false

  1. To check if an IP address is present in a list of Subnets (CIDR). 

Eg: List<string> input = new List<string> () {"", ""}; IPSearch ipSearch=new IPSearch(input); bool result=ipSearch.Contains(""); //true

  1. To check if an IP address is present in the provided Subnet CIDR list and get the corresponding T value of the range. 

Eg: List<Tuple<string, string>> input = new List<Tuple<string, string>> () { Tuple.Create ("" ,"abc"), Tuple.Create ("" ,"xyz") }; IPSearch<string> ipSearch=new IPSearch<string>(input); Tuple<bool,string> result=ipSearch.Lookup(""); //(true,"abc")

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Framework net40 is compatible.  net403 was computed.  net45 is compatible.  net451 is compatible.  net452 is compatible.  net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  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.3 24,152 4/7/2021
1.0.2 276 3/31/2021

Initial Release