A Windows app that caps how fast individual programs can upload and download. Think of it like a speed limit you can apply to just Chrome, or just a Steam download, without slowing anything else down.
Status: v0.3.0. Works for IPv4 and IPv6 TCP/UDP traffic when the WinDivert driver files are present and the app is running as Administrator. See Known limitations.
- See every running program grouped by name, so all your Chrome windows show up as one row instead of fifteen.
- Watch live download and upload speeds for each program, updated every second.
- Use the dashboard to see total traffic, visible app/process counts, active rules, and engine health at a glance.
- Add a rule for any program (by name, full path, or a specific running instance) with separate download and upload caps. Set a cap to 0 to leave that direction unlimited; positive caps entered in the UI must be at least 1 KB/s.
- Editing a saved rule preserves its exact byte limits; values that cannot be shown exactly in compact units use B/s. Tiny positive inputs are rejected instead of becoming unlimited.
- Turn rules on and off with one click. Edit or delete them from a right-click menu or by double-clicking.
- Sort the process list by name, instance count, memory, or current traffic. Hide Microsoft system processes with one checkbox so the list isn't full of
svchost.exe. - Search filters the latest process snapshot immediately. Traffic sorting updates every second, and dashboard totals include tracked traffic even when apps are hidden by search or the Microsoft filter.
- Save the whole rule set as a named profile. Switch between profiles in a click (for example, a "Work" profile vs. a "Gaming" profile), or export them to a file and bring them to another PC.
- Logo-matched Dark, Light, and OLED themes: warm charcoal or white surfaces, mint accents, neutral upload indicators, and distinct warning/error colors. The Windows 11 title bar follows the same palette.
- Adjustable refresh rate so the process list can poll faster on a fast PC or slower if you want to save CPU.
- Keyboard shortcuts for common actions: F5 refreshes running apps and Ctrl+N creates a rule.
- Windows 11 (Windows 10 22H2 probably works but hasn't been tested).
- The .NET 9 SDK if you want to build it yourself.
- The WinDivert driver files (see below). They aren't included.
- Administrator rights when you run the app, otherwise the limits can't be enforced.
BandwidthDesk uses WinDivert, a small signed driver, to intercept and reinject network packets. It's the same library a lot of similar tools rely on, but it isn't redistributed here.
- Grab the latest release from https://reqrypt.org/windivert.html or the GitHub mirror.
- From the
x64/folder of that release, copy these two files intonative/x64/in this repo:WinDivert.dllWinDivert64.sys
- When you build, they get copied next to the app automatically. The driver installs itself the first time the app starts capturing packets.
WinDivert is dual-licensed (LGPL or GPL). Check its license if you plan to redistribute it.
The easy way is build.bat:
build.bat :: Release build
build.bat debug :: Debug build
build.bat run :: Release build, then launch elevated
build.bat clean :: clean every bin/ and obj/ and the build/ folder
build.bat publish :: Self-contained x64 publish into build\publish\
build.bat portable :: publish + zip into build\BandwidthDesk-<ver>-portable-x64.zip
build.bat installer :: publish + Inno Setup into build\BandwidthDesk-<ver>-setup-x64.exe
build.bat dist :: publish + portable + installer (the full distribution bundle)The script will close any running copy of the app first so files aren't locked.
- Portable (
build.bat portable) produces a self-contained zip inbuild/. No .NET runtime required on the target machine — just unzip and runBandwidthDesk.exeelevated. WinDivert.dll and WinDivert64.sys are bundled inside when they were present innative/x64/before publishing; the script warns separately if either file is missing. - Installer (
build.bat installer) needs Inno Setup 6 installed (the script looks foriscc.exeon PATH and in the usual Program Files locations). The script isinstaller\BandwidthDesk.iss. The installer writes to%ProgramFiles%\BandwidthDesk, adds Start Menu / optional desktop shortcut, and registers an uninstaller. During upgrades it closes a running or tray-resident BandwidthDesk instance, skips an identical WinDivert driver, and schedules a genuinely changed locked driver for replacement at reboot. Per-user data in%LOCALAPPDATA%\BandwidthDeskis preserved across reinstalls. - Both outputs land in
build/at the repo root.
Without the script:
dotnet restore
dotnet build -c ReleaseThe exe lands at:
src\BandwidthDesk.App\bin\Release\net9.0-windows10.0.22000.0\BandwidthDesk.exe
If you dropped the WinDivert files into native/x64/ before building, they'll be sitting right next to it.
The app has to run as Administrator to capture packets. The bundled manifest asks for this automatically, so double-clicking it from Explorer gives you a UAC prompt and that's it.
From a terminal:
Start-Process -Verb RunAs "src\BandwidthDesk.App\bin\Release\net9.0-windows10.0.22000.0\BandwidthDesk.exe"Or just build.bat run.
If you start it without elevation, the UI still works for editing rules but a banner tells you the limits aren't actually being applied. Relaunch as admin when you're ready.
- Find the program in the Running applications panel. Use search, or untick "Hide Microsoft" if you're looking for something system-level. Expand a group to pick a specific instance.
- Click Limit selected, or right-click and choose Add bandwidth limit.
- Type a download or upload cap. Leaving a value at 0 means "no limit" for that direction. Positive limits must be at least 1 KB/s. The match defaults to the program's name, which means the rule will keep working when the program closes and opens again. Switch to PID if you only want to limit one specific run.
- Save. The rule shows up on the right and starts applying right away.
You can also double-click a process to jump straight into the rule editor, or double-click an existing rule to edit it.
The Settings button in the top right opens a dedicated preferences view, where you can:
- Switch theme.
- Change how often the process list refreshes.
- Pick the default unit (B/s, KB/s, MB/s) used when creating new rules.
- Save the current rules as a named profile, switch profiles, delete them, or export and import them as files.
Profiles live at %LOCALAPPDATA%\BandwidthDesk\profiles\ and are plain JSON, so they're easy to back up or share.
Imported profiles are validated before they are stored: unsupported schemas, invalid process IDs, negative limits, empty match values, and duplicate match targets are rejected.
Duplicate imports receive unique names, including profiles with long names. Concurrent imports never overwrite an existing profile.
Run dotnet run --project tests/BandwidthDesk.RegressionTests -c Release to check profile import collisions, filename edge cases, rule persistence/recovery, rate-entry boundaries, and dashboard updates. The runner uses temporary data folders and a headless WPF dispatcher with a fake engine; it does not launch the app or start packet capture.
The app sits between Windows and your network card, looking at IPv4 and IPv6 TCP/UDP packets going in or out. For each packet it figures out which program owns it, checks if you have a rule for that program, and if so passes the packet through a "token bucket" that paces it to your chosen speed limit. Packets that need pacing are copied into a bounded delayed-send queue and reinjected when due, so unrelated packets can keep moving through the capture loop. The live figures count packets that were successfully reinjected, so they reflect effective shaped traffic rather than queue intake. The remote side notices the slowdown and naturally throttles itself.
A separate background thread measures real throughput per program once a second, which is what feeds the live numbers in the UI even when no rule is matching.
There are a few ways to do per-program bandwidth limiting on Windows. WinDivert is the practical pick:
| Approach | Why not |
|---|---|
| Custom WFP kernel driver | Best precision, but you have to write, sign, and ship a kernel driver. Way too much overhead for a project this size. |
| Group Policy / QoS Policy | Built into Windows, but only handles outbound traffic and can't cap inbound at all. |
| WinDivert | Runs in user mode on top of a small signed driver. Handles inbound and outbound, TCP and UDP, and lets us match each packet to a program. |
The trade-off: WinDivert installs a kernel driver (requires admin), and adds a small amount of overhead per packet. Fine for normal use, not what you want if you're trying to saturate a 10 Gbps link.
If the capture worker faults unexpectedly, BandwidthDesk closes its WinDivert handle and stops shaping so normal connectivity is restored instead of leaving a stalled capture session behind.
| File | Purpose |
|---|---|
%LOCALAPPDATA%\BandwidthDesk\rules.json |
Your bandwidth rules |
%LOCALAPPDATA%\BandwidthDesk\settings.json |
Preferences (theme, sort order, refresh rate, etc.) |
%LOCALAPPDATA%\BandwidthDesk\profiles\<name>.json |
Saved profiles |
%LOCALAPPDATA%\BandwidthDesk\logs\bandwidthdesk-YYYY-MM-DD.log |
Daily rolling log files (kept for 7 days) |
If rules.json contains invalid JSON, targets, or limits, BandwidthDesk preserves it as rules.corrupt-<timestamp>.json, starts with an empty rule set, and shows a warning. Duplicate rule IDs are repaired on load. File-access errors leave the original rules file in place and block saving until the problem is resolved and the app is restarted. Cancelled operations leave existing rules untouched. Unreadable settings are preserved as settings.corrupt-<timestamp>.json with a warning and safe defaults.
If something's misbehaving, the log file is the first place to check. Every rule change and every error from the driver gets recorded there.
- No system / kernel traffic. Anything owned by PID 0 or 4 (the kernel itself) can't be matched to a rule.
- One rule per program wins. The first matching rule is used. There's no chaining.
- Best-effort PID matching. The process-to-port lookup refreshes about every 250ms, so very short bursts may slip through before a rule catches them.
- PID recycling. Windows reuses process IDs. Match results are cached by PID for about 10 seconds, so restarted processes can be briefly mis-attributed.
- Bounded delay queue. If the delayed-send queue is saturated, excess limited traffic is dropped rather than allowed to bypass the cap. TCP retransmission/backoff normally absorbs this; rate-limited UDP can lose datagrams under sustained overload.
- Needs admin. Without elevation the UI is read-only as far as the engine is concerned. Limits aren't enforced.
MIT. WinDivert is licensed separately by its authors. See https://reqrypt.org/windivert.html.