From time to time, we always get ourselves trapped in situations where we need to transfer files between computer and mobile devices. Cable data transfer is the most widely used method to link computers and mobile phones. But, there scenarios where data cables do not or are not compatible either they are TYPE C or TYPE A. With these situations, there is need to use wireless data transfer. Here, WiFi is preferred to Bluetooth because it is way faster

In this guide, we will be discussing the easy way to transfer files between a computer and a smartphone device over network i. e WiFi. There are a couple of ways to transfer files between computer and smartphone over WiFi. in this guide, we will discuss the following ways:

  1. Using QR-file transfer
  2. Using QRCP
  3. Using

Using a QR-code is one of the easiest ways to transfer files between a computer and smartphone over WiFi. A Qr code on the terminal, which is scanned with your mobile phone to initiate the transfer.

1. QR-File transfer

Qr-file transfer allows one to send files to a mobile device by providing a URL in form of QR code.

Install QR-File transfer on Linux

To get QR-file transfer installed on your computer, you can use one of these ways:

Pip Installation method

You always have to install the most updated version of qr-file transfer. But in cases where you want the most stable version, use pip to install it

For pip to work, ensure you have python 3 installed on your computer

# Ubuntu 20.04+
$ sudo apt update
$ sudo apt install python3-pip

# CentOS 8 / Rocky Linux 8
$ sudo dnf -y install python3-pip

# CentOS 7
$ sudo yum -y install python2-pip

After installing python, you proceed to QR-File transfer installation as below.

For global install use this:

# Python 3
$ sudo pip3 install qr-filetransfer[extras]

# Python 2
$ sudo pip2 install qr-filetransfer[extras]

For local install use this command:

# Python 3
$ sudo pip3 install --user qr-filetransfer[extras]

# Python 2
$ sudo pip2 install --user qr-filetransfer[extras]

If the installation does not go through successfully, try removing the [extras] part which is optional at the end.

Git Installation method

For this instance, we have to clone our Git repositories. if you do not have git installed on your system use the command:

$ sudo install git

With Git installed, you can proceed cloning the repositories with:

git clone
Install requirements for QR-File transfer

Change your working directory to qr-filetransfer

cd qr-filetransfer

Then finally install the requirements with this command

sudo pip3 install -r requirements.txt

Note that all the above steps work for many Linux Distros Debian, Redhat (centos, RockyLinux, Fedora)

In instances where QR-File transfer does not work, declare this bin file with:

export PATH="/usr/local/bin:$PATH"

Persist by adding it to ~/.bashrc file:

$ vim ~/.bashrc
export PATH="/usr/local/bin:$PATH"
$ source ~/.bashrc

# For Zsh
$ vim ~/.zshrc
export PATH="/usr/local/bin:$PATH"
$ source ~/.zshrc

Get Help in QR-File transfer.

To know various arguments about QR file transfer use the help flag

$ qr-filetransfer --help

The output should be similar to this:

usage: qr-filetransfer [-h] [--debug] [--receive] [--port PORT]
                       [--ip_addr {,}] [--auth AUTH]

Transfer files over WiFi between your computer and your smartphone from the

positional arguments:
  file_path             path that you want to transfer or store the received

optional arguments:
  -h, --help            show this help message and exit
  --debug, -d           show the encoded url.
  --receive, -r         enable upload mode, received file will be stored at
                        given path.
  --port PORT, -p PORT  use a custom port
  --ip_addr {,}
                        specify IP address
  --auth AUTH           add authentication, format: username:password

Send files with QR-File transfer

Sending files with QR-fle transfer is quite easy as long as your computer and mobile phone are connected to the same network. You need to have a QR reader app installed on your mobile phone to begin file transferring.

Having satisfied the above requirements, you are ready to transfer your files. Let us begin with sending files from our computer to a mobile device.

Enable Firewall ports

First enable service ports for QR-file transfer to run:

# Firewalld
$ sudo firewall-cmd --add-port=11382/tcp --permanent
$ sudo firewall-cmd --reload

sudo ufw allow 11382/tcp

Send Files from computer to smartphone using qr-filetransfer

After this command, allow QR file transfer to run on this specific port (11382) when sending a file qrcp_0.7.0_linux_x86_64.tar.gz

$ qr-filetransfer -p 11382 ./qrcp_0.7.0_linux_x86_64.tar.gz

Running this command displays a QR code on the terminal.

With your mobile device, scan this code and open it in the browser to download your file.

After scanning the code successfully on your phone, open this link in a browser and the send file will be downloaded automatically as below

To exit this press CTL+c on the terminal

Receive Files to your Computer from your Mobile phone with QR-File transfer .

Receiving files using QR-file transfer is similarly easy as file sending. To receive a file, you also need to open a port for QR-file transfer to run on.

After opening a port, you can proceed to receiving your files using this command:

$ qr-filetransfer -p 7590 -r /home/rockylinux/

When receiving a file, you set the path where you want to receive it. In my case, I want the received files to go to /home/rockylinux directory.

The above command displays a QR on your terminal which you scan with your mobile phone and go to the web interface similar to this

In this interface, you select the file you want to send and click upload.

With this, it shows the file has been successfully transferred to your computer. On the computer terminal, you will see an output similar to this

2. QRCP File transfer

A recent development of QR-File transfer is QRCP file transfer which is much easier to use. These two have many similarities in how they work. they both display a QR- code on the terminal. The only difference is how the flags are declared. QRCP being an improved version is much easier to use and configure as well.

Use the link below for information on QRCP installation and use.

Transfer files over WiFi from computer to mobile device by scanning a QR code

3. Use is a free accommodation service that allows one upload files for sharing without need of an account to a maximum of 10 GB. It has added advantages such as:

  1. It is easy to use and configure
  2. Offers file encryption
  3. Shared files can be accessed by multiple devices
  4. Allows one to set the number of days and number of downloads for which the file is available

Find more about use and configuration on:

How To Share Files from Linux Terminal Using


From the above article, you can now easily transfer your files from your computer to your phone over WiFi. i hope this article benefited you. Please view other articles on our website below

Securely Transfer Files and Folders between Two computers using Croc

Install and Configure Samba File Sharing on Rocky Linux 8


Please enter your comment!
Please enter your name here