qrcp: Scan QR code to transfer files between desktop and mobile devices via Wi-Fi
qrcp It is a command line tool that can scan QR code to transfer files from desktop to mobile device via Wi-Fi (and vice versa). It is suitable for Microsoft Windows, macOS and Linux.
The application binds the web server to the address of the Wi-Fi network interface on a random port (although you can specify the port as needed). After scanning the QR code, the download starts (or you can open the URL scanned by the QR app in a web browser and start downloading). After the transfer is complete, the web server will automatically stop. In order to transfer files from mobile devices to the desktop, qrcp provides a web page that can be used to select the files to be transferred.
When transferring files from a desktop to a mobile device and when transferring in the opposite direction, a URL is displayed in the terminal, so you can type the URL instead of scanning the QR code. What about sending multiple files or even folders at once? ? qrcp also supports this feature-in this case, it will automatically create a zip archive for the file or folder to be transferred, and delete the zip archive after the transfer is complete.
To send a file from the desktop to a mobile device via Wi-Fi, run qrcp with the file as a parameter, as shown below (example):
qrcp Image.jpg
Do the same to send the folder, for example qrcp /path/to/folder
.
To send multiple files, use (example):
qrcp Image1.jpg Image2.jpg Image3.jpg
To receive files from a mobile device to the desktop via Wi-Fi, use the current directory:
qrcp receive
Or, to receive files in a specific directory:
qrcp receive --output=/path/to/directory
When you run receive
Command, scanning the QR code on a mobile device will open a web page that allows you to select a file from the mobile device to transfer it to the desktop running qrcp.
It is worth noting that if you have multiple network interfaces, when you run qrcp for the first time, it will ask you to select the network interface used for file transfer (the interface you need to select is usually in the following format: enp3s0 or eth0).
You can also choose any (0.0.0.0)
As a network interface, in this case, the file can be used not only for everyone on the same network, but also for external networks (as long as the port is not blocked by a firewall or router).
Application configuration is stored in a hidden location .qrcp.json
Files in the user’s home directory.
These are the available qrcp options:
$ qrcp --help
Usage:
qrcp [flags]
qrcp [command]
Available Commands:
config Configure qrcp
help Help about any command
receive Receive one or more files
send Send a file(s) or directories from this host
version Print version number and build information.
Flags:
-c, --config string path to the config file, defaults to $HOME/.qrcp
-d, --fqdn string fully-qualified domain name to use for the resulting URLs
-h, --help help for qrcp
-i, --interface string network interface to use for the server
-k, --keep-alive keep server alive after transferring
-l, --list-all-interfaces list all available interfaces when choosing the one to use
--path string path to use. Defaults to a random string
-p, --port int port to use for the server
-q, --quiet only print errors
-z, --zip zip content before transferring
Use "qrcp [command] --help" for more information about a command.
Download qrcp
qrcp is available for Microsoft Windows, macOS and Linux.
On Linux, Packed As DEB (for Debian, Ubuntu and other Linux-based distributions, such as Linux Mint, Pop!_OS, Zorin OS, Elementary OS, etc.), RPM (for Fedora, openSUSE, CentOS, etc.). There is also a general Linux binary file that can be used on any Linux distribution. It can also be used on AUR for Arch Linux and Manjaro users.
H T: area