# The browser and VDM aren't connected

When the browser can't hand a download to VDM, it keeps the download itself, so nothing is lost. The extension's toolbar button then shows a red **!**. Click it to see what's wrong, then **How to fix it** brings you to the matching section below.

To check VDM's side, open **Options → General** in VDM and click **Test browser integration...**. It checks that browser integration is on, that this is the installed copy, that the browsers can find VDM, and which browsers' extension has connected; **How to fix it** opens the section for the first that fails.

## VDM isn't installed, or browser integration isn't set up

The browser can't find the small helper program it talks to. It is registered when VDM is installed.

1. Install VDM with the setup from [the download page](https://vdm.mikaillab.com/download.html), and keep **Set up browser integration** ticked.
2. Already installed? Open VDM, then **Options → General → Test browser integration**, and click **Set it up** if it offers to.
3. 便携版无法连接：它不会在自身文件夹之外写入任何内容。请使用已安装的版本进行浏览器集成。请参阅[便携模式](https://vdm.mikaillab.com/zh-hans/help/portable.html)。
4. **Started VDM from inside a zip?** WinRAR, 7-Zip and Windows itself run a program from inside a zip by unpacking it to a temporary folder, which they delete afterwards. A copy run that way can't be connected (**Test browser integration** says **This copy runs from a temporary folder that will be deleted**): unzip it to a folder of its own first. Older versions of VDM did set browser integration up from there, and left the browsers looking for a copy that was gone (**The browsers are set up for a copy that is gone**). Start your installed VDM, up to date, once: it takes browser integration back by itself.
5. **Edge (or another browser) says "Specified native messaging host not found", though the registry entry looks right?** On 64-bit Windows the browsers read the registry's 32-bit part (`HKLM\Software\WOW6432Node\…`) before the entry you find under `HKLM\Software\…`, and take the first one there, even one that leads to a copy that is gone. **Test browser integration** says **An older registry entry is in the way**, with that entry: click **Set it up** to give your account an entry of its own, which the browsers read before it. VDM also does that by itself at its start when that entry leads nowhere, and its setup for everyone removes it.
6. On Linux and macOS, VDM sets browser integration up itself each time it starts: start VDM once. **Test browser integration** says what went wrong if it couldn't, such as **The helper program the browsers start is missing**: **Set it up** puts it back.
7. 设置完成后重启浏览器。
8. **Zen, Helium, Brave Origin or another browser built on Firefox or Chromium, as your only browser on Linux or macOS?** Older versions of VDM set browser integration up only for the browsers they knew; the current one also knows Brave Origin and the Beta, Dev and Nightly versions of Brave, Chrome and Edge. Update VDM and start it once.
9. **The AppImage on Linux:** the AppImage's files are gone once it quits, so VDM keeps a copy of its helper program in its data folder (`~/.local/share/voltdownloadmanager/browser-host`) and points the browsers there. Start VDM once after moving or renaming the AppImage, or after an AppImage manager (Gear Lever, AppImageLauncher and the like) moved it, so the helper knows where to start it from.
10. **Windows 上的 Zen：**Zen 1.21.15b 及更高版本存在一个自身的错误，会导致使用辅助程序的附加组件无法连接到辅助程序（[zen-browser/desktop#15432](https://github.com/zen-browser/desktop/issues/15432)）。在 Zen 修复此问题之前，可以使用 Zen 1.21.14b。

## VDM didn't start in time

When VDM isn't running, the browser starts it for each download and waits for it. It waited about 20 seconds this time and gave up.

- Start VDM yourself and try the download again.
- A first start, a slow disk, or an antivirus scanning VDM can take that long. Next time it is usually quick.
- With a VPN or proxy program, allow connections to `127.0.0.1` (your own computer): the browser's helper reaches VDM through one.
- If VDM never opens, see [The setup or VDM won't start](https://vdm.mikaillab.com/zh-hans/help/troubleshooting.html).

## The connection to VDM failed

The browser started VDM's helper, but it stopped before answering. Security software is the usual cause.

- Allow `voltdownloadmanager-nmhost.exe` (in VDM's folder) in your antivirus or anti-malware program.
- Reinstall VDM to restore its files.
- 在 Linux 上，如果 Firefox 或 Chromium 是通过 Snap 安装的，请参阅[Flatpak 和 Snap 浏览器](#linux-sandbox)。
- Uninstalled VDM on Linux? The .deb and .rpm take their browser files with them; the AppImage's and the tar.gz's stay in your home folder: [remove them](https://vdm.mikaillab.com/zh-hans/help/getting-started.html#uninstall-linux), and the extension too.

## VDM doesn't accept this copy of the extension

VDM's helper serves only its own extension. The browser says this copy isn't one it knows.

- **VDM 0.2.x with the extension from the Chrome Web Store?** The store's copy needs a newer VDM: 0.2.x knows only the copy in its own folder. Update VDM with **Help → Check for updates...**. Until then, remove the store's copy and load the one in VDM's folder instead (`extension\chromium`, see [Browser integration](https://vdm.mikaillab.com/zh-hans/help/browser-integration.html#chrome-edge-brave-opera-and-vivaldi)).
- **Two copies installed?** Open the browser's extensions page (`chrome://extensions`, `edge://extensions`, `brave://extensions`) and keep only one **Volt Download Manager**.
- **A copy from elsewhere?** Remove it and add the extension as VDM's **Add Volt Download Manager to your browser** window shows (see [Browser integration](https://vdm.mikaillab.com/zh-hans/help/browser-integration.html)).
- **An older VDM?** Update VDM: a newer extension may have an ID an old helper doesn't know.

## The extension is newer than VDM

Downloads still work, but some of the extension's features need a newer VDM. Update it with **Help → Check for updates...** in VDM.

If VDM says it's up to date, there's nothing for you to do. The extension updates by itself through its store and can get ahead of the app for a while. Everything keeps working, and the message goes away with the next version of VDM.

## 下载详情过大

A download carries its site's cookies (and a form's data) to VDM. A few sites set so many that together they exceed what VDM accepts from the browser (1 MB). The browser kept this one. Signing out and back in to the site usually trims them.

**下载所有链接**和**下载选定链接**会分批发送长链接列表，每批最大 1 MB，因此包含数万个链接的页面也能完整送达链接抓取器。如果单个链接超过此大小（服务器无法接收），则无法发送：它将被忽略，其他链接仍会送达链接抓取器，并且此页面会打开以告知您。如果仅网站的 Cookie 就占满了 1 MB，则无法随链接一起发送：请按上述方法退出并重新登录网站。

## Downloads stay with the browser although VDM is connected

The extension is connected, but VDM's own settings leave this download to the browser. Check, in VDM:

1. **选项 → 常规 → 使用高级浏览器集成**已开启，并且已在**从以下浏览器接管下载**中勾选您的浏览器。
2. 文件类型已列在**选项 → 文件类型**中。
3. 该网站不在**不从以下网站自动开始下载**中，地址也不在**不从以下地址自动开始下载**中。
4. 文件大小不低于**不接管小于以下大小的文件**中设定的值（位于**选项 → 文件类型**中）。
5. For a `.torrent` file: **Open magnet links and .torrent files with Volt Download Manager** is on in **Tasks → Torrent settings**.

还要检查扩展程序的工具栏按钮：如果关闭了**从此浏览器接管下载**，所有下载都会由浏览器处理。

## 浏览器打开 PDF 和音乐文件，而不将它们发送给 VDM

VDM also takes the file types the browser would show or play itself (a PDF, an MP3, also in a frame of a page), when they're listed in **Options → File types** and **Also take files the browser would open** is ticked in **Options → General → Keys...**. This needs a Chromium browser (Chrome, Edge, Brave, Opera, Vivaldi) version 128 or later, or Firefox. Sites in VDM's excluded sites keep opening them in the browser. Hold **Alt** (**Option** on a Mac) while clicking a link to leave it to the browser: the extension follows it as a plain click does (the browser opens or downloads it, and a site's bot check runs in the tab first), instead of the browser's own Alt+click, which saves the link without opening it in Chromium browsers and Safari.

## Chrome、Edge 或 Brave 浏览器中 YouTube 页面没有“下载视频”按钮

Chrome 网上应用店中的扩展程序副本在 0.5.1 版本之前，YouTube 页面上不显示**下载视频**按钮。从 0.5.1 版本开始，该按钮会显示。您的浏览器会自行更新扩展程序；要更快获取更新，请打开浏览器的扩展程序页面并在那里更新。

You can always save a video without the button: in VDM, open **Tasks → Download video from a page** and paste the video's address.

## 扩展程序无法读取此网站

In Chrome, Edge and Brave you can limit an extension to some sites (right-click its toolbar button → **This can read and change site data**). On a site it may not read, the extension can't pass your sign-in on, so it leaves the download to the browser. Choose **On all sites** to let VDM take downloads everywhere.

## 弹窗显示此副本是手动加载的

通过 **加载已解压的扩展程序**（Chrome、Edge、Brave、Opera、Vivaldi）或 **加载临时附加组件**（Firefox）加载的副本不会自动更新，其工具栏按钮的弹窗会显示此信息，并附带一个指向浏览器商店的链接。请从该链接添加扩展，然后从浏览器的扩展程序页面（`chrome://extensions`、`edge://extensions`、`about:addons`...）中移除手动加载的副本，以避免浏览器运行两个相同的扩展。商店中的副本是相同的扩展，并且浏览器会使其保持最新。

## Firefox 重启后会忘记扩展程序

通过`about:debugging`中的**加载临时附加组件**加载的附加组件会在 Firefox 关闭时被移除。请移除它，然后从[addons.mozilla.org 上的页面](https://addons.mozilla.org/firefox/addon/volt-download-manager/)安装附加组件：Firefox 会保留并更新该组件。

## Linux：Flatpak 和 Snap 浏览器

Browsers installed as a Flatpak or a Snap run in a sandbox, which decides whether they can reach VDM.

- **Firefox as a Snap** (Ubuntu's own Firefox) reaches VDM through the desktop, which reads the browser files in your home folder and those the .deb or .rpm installs for everyone. The first time the extension calls VDM, the desktop asks **Allow Firefox to start WebExtension backend?** for Volt Download Manager: choose **Allow**. After **Don't allow**, the extension says the connection failed and the desktop doesn't ask again; to be asked again, run this in a terminal, then use the extension again:

`gdbus call --session --dest org.freedesktop.impl.portal.PermissionStore --object-path /org/freedesktop/impl/portal/PermissionStore --method org.freedesktop.impl.portal.PermissionStore.Delete webextensions com.voltdownloadmanager.host` - **Chromium as a Snap** (Ubuntu's Chromium) starts VDM's helper inside its sandbox, where it can't reach VDM, so VDM doesn't list it in **Add Volt Download Manager to your browser**. Use Firefox, or Google Chrome from its own `.deb`. - **Flatpak browsers** (such as Zen's `app.zen_browser.zen`) can't start VDM's helper, so VDM doesn't list them either. Install the browser from your distribution's packages (or the browser maker's own `.deb`, `.rpm`, tarball or AppImage) to use browser integration.

## 下一步

- [浏览器集成 →](https://vdm.mikaillab.com/zh-hans/help/browser-integration.html)
- [故障排除 →](https://vdm.mikaillab.com/zh-hans/help/troubleshooting.html)
- [返回文档索引 →](https://vdm.mikaillab.com/zh-hans/help/)

## 相关

- [崩溃报告](https://vdm.mikaillab.com/zh-hans/help/crash-reports.html)
- [故障排除](https://vdm.mikaillab.com/zh-hans/help/troubleshooting.html)

[在 GitHub 上编辑此页面](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/docs/browser-help.md) [报告此页面的问题](https://github.com/mikailhossenimran/voltdownloadmanager/issues/new?template=website.yml&title=Website%3A%20The%20browser%20and%20VDM%20aren%27t%20connected&page=https%3A//vdm.mikaillab.com/help/browser-help.html) [页面历史](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/docs/browser-help.md)

免费、开源、无广告、无试用版。

[Download Volt Download Manager](https://vdm.mikaillab.com/zh-hans/download.html)
