qrcp. Transfer files between desktop and mobile device over Wi-Fi by scanning a QR code

qrcp is a command line tool to transfer files from desktop to mobile (and vice versa) over Wi-Fi by scanning a QR code. It is available for Microsoft Windows, macOS and Linux.

The app binds the web server to the address of your Wi-Fi network interface on a random port (although the port can be specified if you like). After scanning the QR code, the download starts (or you can open the URL scanned by the QR app in your web browser and then the download starts). After the transfer is complete, the web server stops automatically.

For transferring files from a mobile device to the desktop, qrcp serves up a web page that you can use to select the files you want to transfer.

As when transferring files from desktop to mobile device and vice versa, the URL is displayed in the terminal, so you can enter it instead of scanning the QR code if you want.

What about sending multiple files or even folders at the same time? qrcp also supports this – in such cases, it automatically creates a zip archive of the files or folders you want to transfer and deletes the zip archive after the transfer is complete.

To send a file to a mobile device from your desktop over Wi-Fi, run qrcp with the file as an argument like this (example):

qrcp Image.jpg

Do the same for sending a folder like qrcp / path / to / folder.

To send multiple files use (example):

qrcp Image1.jpg Image2.jpg Image3.jpg

To get a file from a mobile device to the desktop over Wi-Fi, in the current directory use:

qrcp receive

Or, to get files in a specific directory:

qrcp receive --output=/path/to/directory

When you run the receive command, scanning the QR code on your mobile device opens a web page that allows you to select files from your mobile device and drag them to the desktop where you ran qrcp.

It is worth noting that if you have multiple network interfaces, when you first start qrcp, you will be prompted to select the network interface that will be used to transfer files (the one you need to select usually has the form: enp3s0 or eth0).

You can also choose any network interface (, in which case the file will become available not only to everyone on the same network, but also from external networks (unless the port is blocked by your firewall or router).

Application configuration is stored in a hidden .qrcp.json file in the user’s home directory.

These are the available qrcp options:

$ qrcp --help
  qrcp [flags]
  qrcp [command]

Available Commands:
  config      Настройка qrcp
  help        Справка о любой команде
  receive     Получение одного или нескольких файлов
  send        Отправить файл(ы) или каталоги с этого хоста
  version     Распечатайте номер версии и информацию о сборке.

  -c, --config string         путь к конфигурационному файлу, по умолчанию $HOME/.qrcp
  -d, --fqdn string           полное доменное имя, используемое для результирующих URL-адресов
  -h, --help                  справка для qrcp
  -i, --interface string      сетевой интерфейс для использования на сервере
  -k, --keep-alive            сохранить сервер после переноса
  -l, --list-all-interfaces   перечислите все доступные интерфейсы при выборе того, который будет использоваться
      --path string           путь к использованию .Defaults используется случайная строка
  -p, --port int              порт, используемый для сервера
  -q, --quiet                 только ошибки печати
  -z, --zip                   содержимое zip перед передачей

Используйте "qrcp [command] --help" для получения дополнительной информации о команде.

qrcp is available for Microsoft Windows, macOS and Linux.

On Linux, it is packaged as DEB (for Debian, Ubuntu and other Linux distributions based on them, such as Linux Mint, Pop! _OS, Zorin OS, Elementary OS, etc.), RPM (for Fedora, openSUSE, CentOS, etc.) .d.)). There is also a generic Linux binary that should work on any Linux distribution. It is also available in the AUR for Arch Linux and Manjaro users.