IPRangeLookup 1.0.3
dotnet add package IPRangeLookup --version 1.0.3
NuGet\Install-Package IPRangeLookup -Version 1.0.3
<PackageReference Include="IPRangeLookup" Version="1.0.3" />
paket add IPRangeLookup --version 1.0.3
#r "nuget: IPRangeLookup, 1.0.3"
// 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
Overview
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
- To check if an IP address is present in Public IP Ranges.
Eg: IPSearch ipSearch=new IPSearch(); bool result=ipSearch.Contains("10.0.0.0"); //false
- To check if an IP address is present in a list of Subnets (CIDR).
Eg: List<string> input = new List<string> () {"12.108.10.152/30", "13.108.10.10/29"}; IPSearch ipSearch=new IPSearch(input); bool result=ipSearch.Contains("12.108.10.153"); //true
- 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 ("12.108.10.152/30" ,"abc"), Tuple.Create ("13.108.10.10/29" ,"xyz") }; IPSearch<string> ipSearch=new IPSearch<string>(input); Tuple<bool,string> result=ipSearch.Lookup("12.108.10.153"); //(true,"abc")
Product | Versions 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. |
-
.NETCoreApp 2.1
- Newtonsoft.Json (>= 13.0.1)
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.0
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.5
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.5.1
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.5.2
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.6
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.6.1
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.6.2
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.7
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.7.1
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.1)
-
net5.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial Release