<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: pagal</title>
    <description>The latest articles on DEV Community by pagal (@pagal_afbf6070).</description>
    <link>https://dev.to/pagal_afbf6070</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4260571%2Fd471f6e8-494f-48c8-bb90-a7abfbf2a7ed.png</url>
      <title>DEV Community: pagal</title>
      <link>https://dev.to/pagal_afbf6070</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pagal_afbf6070"/>
    <language>en</language>
    <item>
      <title>How I built a download manager that pulls one file through all your network connections at once</title>
      <dc:creator>pagal</dc:creator>
      <pubDate>Mon, 23 Nov 2026 12:40:40 +0000</pubDate>
      <link>https://dev.to/pagal_afbf6070/how-i-built-a-download-manager-that-pulls-one-file-through-all-your-network-connections-at-once-35p4</link>
      <guid>https://dev.to/pagal_afbf6070/how-i-built-a-download-manager-that-pulls-one-file-through-all-your-network-connections-at-once-35p4</guid>
      <description>&lt;p&gt;I grew up on IDM. Then I learned how it actually works and got annoyed — every "multi-connection" downloader I knew races chunks down a &lt;strong&gt;single&lt;/strong&gt; pipe. If your machine has Wi-Fi and Ethernet, one of them sits idle. If you have one fast line, you're bounded by one TCP flow's window.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Qorvex&lt;/strong&gt; — a Python download manager where the core idea is: &lt;em&gt;split one file into chunks and pull them through every available network interface simultaneously&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Finding all the local interfaces
&lt;/h2&gt;

&lt;p&gt;First problem: what counts as "a connection"? Loopback doesn't, virtual adapters (Hyper-V, VPN TUN devices) mostly don't, and you don't want to announce 12 adapters when 2 have real routes.&lt;/p&gt;

&lt;p&gt;The trick that worked: enumerate adapters with &lt;code&gt;psutil.net_if_addrs()&lt;/code&gt;, filter out loopback/non-routable addresses, then &lt;strong&gt;group by subnet prefix&lt;/strong&gt; — two adapters on the same router are effectively one pipe, so announcing both just double-counts speed in the UI. Each surviving adapter gets bound via &lt;code&gt;socket.bind((local_ip, 0))&lt;/code&gt; on the chunk requests, so the OS actually routes each chunk through a specific interface (needs &lt;code&gt;IP_MULTICAST_IF&lt;/code&gt;-style route hints on some setups, but plain binding worked on Windows/Linux/macOS for normal LANs).&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Chunked range downloads
&lt;/h2&gt;

&lt;p&gt;Standard stuff with one wrinkle — the per-chunk scheduler:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;file_size → N chunks (each ~8 MB, sized by total bandwidth estimate)
each chunk: GET with Range header, bound to an adapter
chunks complete → write into a sparse file at offset
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Naive approach (fixed ranges per adapter) fails when one adapter is 10× slower — you end up waiting on it. The fix is a work-stealing queue: all chunks go in one global queue, every adapter's worker pulls the next chunk when it's free. Fast interfaces just do more chunks. For single-adapter machines this degenerates to ordinary parallel-range downloading, which is still what makes it faster than a browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Torrents, without writing a torrent client
&lt;/h2&gt;

&lt;p&gt;I did not write a BitTorrent protocol implementation. &lt;code&gt;libtorrent&lt;/code&gt; exists, it's excellent, and the Python bindings are fine — but the current API docs are thin, so a few notes for anyone going this route:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;v2.x moved settings to &lt;strong&gt;dict-style&lt;/strong&gt;: &lt;code&gt;lt.settings_pack()&lt;/code&gt; then &lt;code&gt;sp["listen_interfaces"] = "0.0.0.0:6881"&lt;/code&gt; — the old &lt;code&gt;set_*&lt;/code&gt; methods silently do nothing&lt;/li&gt;
&lt;li&gt;Adding a magnet: &lt;code&gt;session.add_torrent(add_torrent_params)&lt;/code&gt; with &lt;code&gt;parse_magnet_uri()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;To map &lt;strong&gt;which peer/connection a byte came from&lt;/strong&gt; (for my per-network attribution), you read &lt;code&gt;peer_info.local_endpoint&lt;/code&gt; — the local side of the peer connection, not &lt;code&gt;remote_endpoint&lt;/code&gt;. This took me an embarrassing debugging session to discover&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. The YouTube rabbit hole (SABR)
&lt;/h2&gt;

&lt;p&gt;Bundling &lt;code&gt;yt-dlp&lt;/code&gt; seems trivial until YouTube's server-side experiment gating kicks in: &lt;code&gt;web_safari.bypass_premium&lt;/code&gt; and similar formats started returning &lt;strong&gt;SABR-streamed URLs that 403-flip per request&lt;/strong&gt; — the same URL that returned bytes 30 seconds ago returns 403 now (yt-dlp issue #12482). Direct-URL downloading of those formats is basically dead.&lt;/p&gt;

&lt;p&gt;What survived: &lt;strong&gt;HLS variant playlists&lt;/strong&gt;. Master playlist → media playlist → segment URLs stay fetchable. So I wrote a small HLS downloader: fetch the variant playlist, download segments with retry to a temp dir, concat with a bundled static ffmpeg. Cookies from the user's browser (via &lt;code&gt;yt-dlp&lt;/code&gt;'s &lt;code&gt;cookies_from_browser&lt;/code&gt;) plus a JS runtime (Deno, also bundled) for the PO-token challenge — and YouTube downloads work out of the box again.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Making it a &lt;em&gt;desktop app&lt;/em&gt;, not a script
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;pywebview&lt;/code&gt; + one HTML file = a real window without Electron. Two lessons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Never open a URL in windowed mode.&lt;/strong&gt; pywebview on Windows tries &lt;code&gt;gui.Webview2&lt;/code&gt;; my first build popped a browser tab on launch because a fallback path called &lt;code&gt;webbrowser.open&lt;/code&gt;. Window mode must stay window-only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Packaging&lt;/strong&gt;: PyInstaller onefile + &lt;code&gt;--collect-all yt_dlp_plugins --copy-metadata bgutil-ytdlp-pot-provider&lt;/code&gt; (namespace packages don't get picked up automatically) + &lt;code&gt;--add-binary&lt;/code&gt; for ffmpeg/deno. If you're doing this on Windows CI, note that &lt;strong&gt;PowerShell splits arguments on semicolons&lt;/strong&gt; — &lt;code&gt;--add-binary "file.exe;."&lt;/code&gt; as an env var expansion will explode; pass args via a file and read them line-by-line instead. Also &lt;code&gt;Thread._stop&lt;/code&gt; is callable-internal on Python ≤3.12, so don't name your subclass's stop-event &lt;code&gt;_stop&lt;/code&gt;. Both of these cost me CI runs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where it is now
&lt;/h2&gt;

&lt;p&gt;It's free and open source (MIT), Windows/macOS/Linux builds on GitHub Releases, and the browser extension is live on the Edge Add-ons store:&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;&lt;a href="https://github.com/PagalSarthak/qorvex" rel="noopener noreferrer"&gt;https://github.com/PagalSarthak/qorvex&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Happy to go deeper on any part — the interface-binding logic and the SABR workaround are the two I get asked about most. And if you build something similar, tell me how you handle adapters that share a subnet; I'm still not sure my grouping heuristic is right for enterprise networks.&lt;/p&gt;

</description>
      <category>python</category>
      <category>networking</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
    <item>
      <title>Like IDM, but free: I made a multi-connection download manager that also does torrents</title>
      <dc:creator>pagal</dc:creator>
      <pubDate>Mon, 23 Nov 2026 12:14:24 +0000</pubDate>
      <link>https://dev.to/pagal_afbf6070/like-idm-but-free-i-made-a-multi-connection-download-manager-that-also-does-torrents-55e9</link>
      <guid>https://dev.to/pagal_afbf6070/like-idm-but-free-i-made-a-multi-connection-download-manager-that-also-does-torrents-55e9</guid>
      <description>&lt;p&gt;[](&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;url
) Like most of you, I grew up on IDM. It was fast, it grabbed everything from the browser, it just worked. Then the licenses got annoying, and torrent clients were a separate world entirely one app for HTTP downloads, another for torrents, and nothing talked to your browser.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So I thought why not make something like IDM, but with plexo multi-connection downloads (splits every file into chunks and pulls them through all your network adapters at the same time) and torrent support built in, with a browser extension that takes over downloads like IDM does.&lt;/p&gt;

&lt;p&gt;That became Qorvex. It's free and open-source, works on Windows, macOS and Linux.&lt;/p&gt;

&lt;p&gt;What it does:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Multi-connection downloads — a file is split into chunks and downloaded in parallel, so you actually max out your bandwidth. If you have multiple network adapters (Wi-Fi + Ethernet, etc.) it pulls through all of them at once — you can see each connection's speed live in the dashboard

Browser extension — grabs your downloads from Chrome/Edge/Firefox the way IDM does (liveontheEdgeAdd-onsstore)

Torrents — drop a .torrent file or magnet link, same downloader, same speed graph

Video downloads — paste a YouTube/Vimeo/etc. link and it fetches the video (uses yt-dlp under the hood)

Downloads in the browser can be asked to confirm — optional setting, so nothing gets grabbed without your okay

System tray — closes to tray, notifies you when a download finishes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;What it doesn't do (yet): no speed scheduler, no global speed limit, no auto-categorization folders. That's on the roadmap.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/PagalSarthak/qorvex" rel="noopener noreferrer"&gt;https://github.com/PagalSarthak/qorvex&lt;/a&gt; Windows installer + portable exe, macOS and Linux builds are all on the Releases page.&lt;/p&gt;

&lt;p&gt;Would genuinely like feedback especially on the multi-connection part, since that's the whole point. If it doesn't hit your full speed, tell me your setup and I'll look into it. &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqs25drj4r3wmen54poq4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqs25drj4r3wmen54poq4.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;a href="https://dev.tourl"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>python</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
