# 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. Bản di động không thể kết nối: nó không ghi gì bên ngoài thư mục của nó. Hãy sử dụng bản cài đặt để tích hợp trình duyệt. Xem [Chế độ di động](https://vdm.mikaillab.com/vi/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. Khởi động lại trình duyệt sau khi thiết lập.
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. **Zen trên Windows:** Zen 1.21.15b trở lên có lỗi riêng khiến các tiện ích mở rộng không thể kết nối với chương trình trợ giúp của chúng ([zen-browser/desktop#15432](https://github.com/zen-browser/desktop/issues/15432)). Lỗi này ảnh hưởng đến mọi tiện ích mở rộng sử dụng chương trình đó. Trong khi chờ Zen khắc phục lỗi, Zen 1.21.14b vẫn hoạt động.

## 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/vi/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.
- Trên Linux, nếu Firefox hoặc Chromium được cài đặt dưới dạng Snap, hãy xem [Trình duyệt Flatpak và 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/vi/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/vi/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/vi/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.

## Chi tiết của một lượt tải xuống quá lớn

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.

**Tải xuống tất cả liên kết** và **Tải xuống các liên kết đã chọn** gửi một danh sách dài các liên kết theo từng phần lên đến 1 MB, vì vậy một trang có hàng chục nghìn liên kết sẽ được gửi toàn bộ đến Trình lấy liên kết. Một liên kết đơn dài hơn mức đó, mà không máy chủ nào chấp nhận, không thể được gửi: nó sẽ bị bỏ qua, các liên kết khác vẫn đến Trình lấy liên kết, và trang này sẽ mở ra để thông báo điều đó. Khi chỉ riêng cookie của một trang web đã lấp đầy 1 MB, không liên kết nào có thể đi kèm: hãy đăng xuất và đăng nhập lại vào trang web, như trên.

## 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. **Tùy chọn → Chung → Sử dụng tích hợp trình duyệt nâng cao** đã bật và trình duyệt của bạn đã được chọn trong **Chụp tải xuống từ các trình duyệt sau**.
2. Loại tệp được liệt kê trong **Tùy chọn → Loại tệp**.
3. Trang web không nằm trong **Không tự động bắt đầu tải xuống từ các trang web sau** và địa chỉ cũng không nằm trong **Không tự động bắt đầu tải xuống từ các địa chỉ sau**.
4. Tệp không nhỏ hơn **Không lấy các tệp nhỏ hơn** trong **Tùy chọn → Loại tệp**.
5. For a `.torrent` file: **Open magnet links and .torrent files with Volt Download Manager** is on in **Tasks → Torrent settings**.

Cũng kiểm tra nút trên thanh công cụ của tiện ích mở rộng: nếu **Tải xuống từ trình duyệt này** tắt, mọi thứ sẽ do trình duyệt xử lý.

## Trình duyệt mở PDF và nhạc thay vì gửi chúng

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.

## Không có nút Tải xuống video trên YouTube trong Chrome, Edge hoặc Brave

Bản sao tiện ích mở rộng từ Chrome Web Store không hiển thị nút **Tải xuống video** trên YouTube trước phiên bản 0.5.1. Từ 0.5.1 trở đi thì có. Trình duyệt của bạn tự cập nhật tiện ích mở rộng; để cập nhật sớm hơn, hãy mở trang tiện ích mở rộng của trình duyệt và cập nhật chúng tại đó.

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

## Tiện ích mở rộng không thể đọc trang web này

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.

## Thông báo bật lên cho biết bản sao này được tải thủ công

Một bản sao được tải bằng **Tải tiện ích đã giải nén** (Chrome, Edge, Brave, Opera, Vivaldi) hoặc **Tải tiện ích tạm thời** (Firefox) sẽ không tự cập nhật, và thông báo bật lên của nút trên thanh công cụ sẽ hiển thị điều đó, kèm theo liên kết đến cửa hàng tiện ích của trình duyệt. Hãy thêm tiện ích mở rộng từ liên kết đó, sau đó xóa bản sao được tải thủ công trên trang tiện ích của trình duyệt (`chrome://extensions`, `edge://extensions`, `about:addons`...), để trình duyệt không chạy hai bản. Bản sao từ cửa hàng là cùng một tiện ích mở rộng, và trình duyệt sẽ giữ nó luôn cập nhật.

## Firefox quên tiện ích mở rộng sau khi khởi động lại

Một tiện ích bổ sung được tải bằng **Tải tiện ích tạm thời** (từ `about:debugging`) sẽ bị xóa khi Firefox đóng. Thay vào đó, hãy xóa tiện ích đó và cài đặt tiện ích từ [trang của nó trên addons.mozilla.org](https://addons.mozilla.org/firefox/addon/volt-download-manager/): Firefox sẽ giữ lại tiện ích này và cập nhật nó.

## Linux: Trình duyệt Flatpak và 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.

## Các bước tiếp theo

- [Tích hợp trình duyệt →](https://vdm.mikaillab.com/vi/help/browser-integration.html)
- [Khắc phục sự cố →](https://vdm.mikaillab.com/vi/help/troubleshooting.html)
- [Quay lại mục lục tài liệu →](https://vdm.mikaillab.com/vi/help/)

## Liên quan

- [Báo cáo sự cố](https://vdm.mikaillab.com/vi/help/crash-reports.html)
- [Khắc phục sự cố](https://vdm.mikaillab.com/vi/help/troubleshooting.html)

[Sửa trang này trên GitHub](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/docs/browser-help.md) [Báo cáo sự cố với trang này](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) [Lịch sử trang](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/docs/browser-help.md)

Miễn phí, mã nguồn mở, không quảng cáo, không dùng thử.

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