NetLimiter 5.3.28
dotnet add package NetLimiter --version 5.3.28
NuGet\Install-Package NetLimiter -Version 5.3.28
<PackageReference Include="NetLimiter" Version="5.3.28" />
<PackageVersion Include="NetLimiter" Version="5.3.28" />
<PackageReference Include="NetLimiter" />
paket add NetLimiter --version 5.3.28
#r "nuget: NetLimiter, 5.3.28"
#:package NetLimiter@5.3.28
#addin nuget:?package=NetLimiter&version=5.3.28
#tool nuget:?package=NetLimiter&version=5.3.28
NetLimiter API
The NetLimiter API controls NetLimiter running on a computer, usually the local one. It can create filters and rules (limits, firewall rules, priorities, quotas), monitor network activity, answer firewall requests and change the NetLimiter settings. The NetLimiter client (GUI) is built on this API.
Requirements
- NetLimiter installed on the computer you connect to. The package version follows the NetLimiter version: use the package version that matches the installed NetLimiter (e.g. package 5.3.28 for NetLimiter 5.3.28).
- .NET Framework 4.6.2 or later, Windows.
- Set your project's platform target to x64 or x86 and reference the package with
PackageReference. The API contains a native part (NLInterop.dll) that exists only for x86 and x64. AnyCPU projects and projects usingpackages.configdon't get it and fail withFileNotFoundExceptionforNLInterop. - Changing NetLimiter settings needs an elevated (Run as administrator) process. To allow non-elevated
applications, set
RequireElevationLocaltofalsein the NetLimiter configuration file.
Example
Limit the download speed of an application to 512 KB/s:
using NetLimiter.Service;
using (NLClient client = new NLClient())
{
// Connect to the local NetLimiter service
client.Connect();
// Filter matching the application
Filter filter = new Filter("MyAppFilter");
filter.Functions.Add(new FFAppIdEqual(new AppId(@"C:\Program Files\MyApp\MyApp.exe")));
client.AddFilter(filter);
// Limit rule for incoming traffic: 512 KB/s
client.AddRule(filter.Id, new LimitRule(RuleDir.In, 512 * 1024));
// ...
// Removing the filter removes its rules too
client.RemoveFilter(filter);
}
More samples
NetLimiterApiSamples on GitHub: limits for an application, the whole computer or the Internet zone, firewall requests, quotas, scheduled rules, traffic statistics, permissions and more.
Support
Questions and comments: support@netlimiter.com
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.2
- DnsClient (>= 1.8.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.3)
- VirusTotalNet (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
NetLimiter API released along with NetLimiter 5.3.28.