IPAddressRange 2.1.0.1

This library allows you to parse range of IP address string such as "192.168.0.0/24" and "192.168.0.0/255.255.255.0" and "192.168.0.0-192.168.0.255", and can conatins check. This library supports both IPv4 and IPv6.

There is a newer version of this package available.
See the version list below for details.
Install-Package IPAddressRange -Version 2.1.0.1
dotnet add package IPAddressRange --version 2.1.0.1
<PackageReference Include="IPAddressRange" Version="2.1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IPAddressRange --version 2.1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: IPAddressRange, 2.1.0.1"
For F# scripts that support #r syntax, copy this into the source code to reference the package.
// Install IPAddressRange as a Cake Addin
#addin nuget:?package=IPAddressRange&version=2.1.0.1

// Install IPAddressRange as a Cake Tool
#tool nuget:?package=IPAddressRange&version=2.1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

v.2.1.0 - Enhance: Add "IsEqual" and "Decrement" methods to "Bits" utility class.
     v.2.0.0 - [BREAKING CHANGE] Truncate .NET 4.0 support.
             - Enhance: can serialize/deserialize json text by JSON.NET
     v.1.6.2 - Support: .NET Standard 1.4 (.NET Core) and UWP
     v.1.6.1 - Fix: Add some parameter checks for throwing ArgumentNullException
     v.1.6.0 - Enhance: Add "ToCidrString()" and "GetprefixLength()" method.
     v.1.5.0 - Enhance: Add constructors variation / Save memory usage.
     v.1.4.0 - Enhance: Add IEnumerable<IPAddress> support.
     v.1.3.0 - Enhance: support both "hyphen (-)" (0x002D) and "dash (–)" (0x2013) at begin-end format.
     v.1.2.1 - Fix: "Parse()" and "TryParse()" methods throw IndexOutOfRangeException when bit mask length is invalid at CIDR format.
     v.1.2.0 - Enhance: Add "Parse()" and "TryParse()" methods. (Instead, the constructor which has one string argument is obsoleted.)
     v.1.1.0 - Enhance: Add "Contains()" method overload version of IPAddressRange argument.
     v.1.0.6 - Fix Package: Repackage with Release build. (1.0.5 was Debug build)
     v.1.0.5 - Fix: IPv4 CIDR range ".../32" causes crush.
     v.1.0.4 - Enhance: support bit mask range not only CIDR range.
     v.1.0.3 - Fix: Can not parse the address which contains hex string.

  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.4

  • UAP 0.0

    • No dependencies.

NuGet packages (18)

Showing the top 5 NuGet packages that depend on IPAddressRange:

Package Downloads
IPAddressRange.Signed
[Superseded] This package became only metadata package for installing "IPAddressRange" NuGet package, because "IPAddressRange" NuGet package became strong-named assembly. Please consider to installing "IPAddress" NuGet package directly instead of this package. ---------------------------- This library allows you to parse range of IP address string such as "192.168.0.0/24" and "192.168.0.0/255.255.255.0" and "192.168.0.0-192.168.0.255", and can contains check. This library supports both IPv4 and IPv6.
ZNetCS.AspNetCore.IPFiltering
A middleware that allows whitelist or blacklist incomming requests based on IP address. It can be configured using single IP address or ranges. It supports single IP, IP range IPv4 and IPv6. There is also possible to ignore specific paths from IP filtering.
WhoisClient.NET
This library is a WHOIS protocol client used to search owner information by IP address or domain name. This library determines the WHOIS server automatically and queries the referral server recursively. The response of the whois query contains strongly typed values, and the raw output.
IQX.RoleManager.Abstractions
Package Description
DNTCommon.Web.Core
DNTCommon.Web.Core provides common scenarios' solutions for ASP.NET Core applications.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on IPAddressRange:

Repository Stars
duyanming/Viper
Viper 是一个基于Anno微服务引擎开发的Dashboard项目、示例项目。Anno 底层通讯采用 grpc、thrift。自带服务发现、调用链追踪、Cron 调度、限流、事件总线等等
andruzzzhka/BeatSaberMultiplayer

Version History

Version Downloads Last updated
4.2.0 12,438 3/9/2021
4.1.3 8,690 2/22/2021
4.0.0 628,773 8/31/2019
3.2.2 21,276 8/12/2019
3.2.1 149,668 6/26/2019
3.2.0 686,611 5/1/2018
3.1.1 1,353 4/26/2018
3.1.0 29,084 3/22/2018
3.0.0.1 7,921 3/3/2018
3.0.0-beta 698 2/23/2018
2.2.0 5,231 1/29/2018
2.1.1 38,287 11/28/2017
2.1.1-beta 845 11/20/2017
2.1.0.1 52,894 11/16/2017
2.1.0-alpha 873 11/1/2017
2.0.0.4 55,221 9/15/2017
2.0.0.3 67,290 7/4/2017
2.0.0.3-beta 766 5/29/2017
2.0.0-beta 780 5/19/2017
1.6.2.7 28,386 3/8/2017
1.6.2.6-beta 797 3/1/2017
1.6.2.1-beta 1,019 11/29/2016
1.6.1 61,131 9/27/2016
1.6.0 27,104 5/23/2016
1.5.0 111,273 10/16/2015
1.4.0.1 4,005 8/22/2015
1.4.0 19,478 6/3/2015
1.3.0.1 3,013 4/1/2015
1.3.0 830 4/1/2015
1.2.1 3,230 2/19/2015
1.2.0 22,973 2/5/2015
1.1.0-beta 2,254 11/4/2014
1.0.6 12,412 3/10/2014
1.0.5 1,865 12/9/2013
1.0.4 925 12/9/2013
1.0.3 908 12/9/2013
1.0.2 7,951 5/28/2012
1.0.1 1,152 5/22/2012
1.0.0 1,138 5/17/2012
Show less