How to Use FTP to Move Files Between Your Computer and Your Android Device

Everyone who has an Android device knows that you can transfer files by plugging it into your computer with a USB cable. Not everyone knows that you can use FOSS software to connect to your Android devices wirelessly.

I know that it’s not the easiest method out there, but this is a fun and geeky way to do it. So if you are in some DIY mood, let me show you how to transfer files between Linux and Android using FTP.

Transfer Files between Android and Linux using FTP

So here’s the step by step process of setting up FTP for transferring files between Linux desktop and Android smartphone.

Step 1: Get the Necessary Software

In order to connect to your Android device, you need two things: an FTP server and an FTP client. There are quite a few of both to choose from. I would recommend Filezilla as an FTP client because it is open-source and available on multiple platforms.

My favorite FOSS app store for Android is F-Droid. F-Droid has two great FTP server apps: primitive ftpd and FTP Server (Free). Both require Android 4.0 or newer. I will focus on primitive ftpd in this article, but similar steps can be used for FTP Sever (Free).

Step 2: Getting Familiar with the FTP Server

Once you have both the FTP client and server installed, It’s time to set up the connection between the two. Let’s start with the FTP server on the Android device. First, open primitive ftpd from your app drawer.

android-1

Once the app opens, you’ll be confronted by a bunch of numbers. Don’t freak out. You’ll see that server has assigned an IP address (in this test case 192.168.1.131). If you look down further, you will see that both FTP and SFTP are currently not running (SFTP is a slightly different protocol that uses SSH to connect.). Below you can see the username, which is currently set to user.

At the top of the screen, there two buttons. One will start the FTP server and the other will take you to settings. Starting the server is self-explanatory.

android-2

In the setting menu, you can change the server’s username, password and which port the server uses. You can also prevent standby while the server is active, set the server to start on boot or change the theme.

android-2-2
android-3
android-5

Step 3: Using FileZilla

Now open FileZilla on your system of choice. You have two options on how you use Filezilla. You can either manually type in the IP address, username, password, and port every time you want to move a file or you can store that information on Filezilla. (Note: Every time you start the FTP server the IP address will be different, so you will have to update the number saved on Filezilla.) I will show you both ways.

If you want to do it manually, merely fill in the required spaced at the top of the FileZilla window and hit “quick connect”.

filezilla-1-2

To save the information, click on the icon below the file menu. This will open the Site Manager dialog box. Fill out the information you want to save. I usually set “login type” to “ask for password” top be a little bit more secure. If you are going to use FTP, you can leave the default, but if you want to use SFTP you have to select it from the Protocol dropdown box.

filezilla-2

Click connect, enter your password and you are in. You will see a warning that you are connecting to a new host. You can verify the fingerprint on the screen against what primitive ftpd says. If it’s correct (and it should be) select the box to add it to the cache, so you don’t see this message in the future.

filezilla-5

Step 4: Moving Files

Now you’ll see an address box that says “local site” and another that says “remote site”. Those represent your computer and your Android device respectively. From here you can browse through your PC and move files to your Android device. I would recommend uploading files into your Downloads folder so you can keep track of them easier. You can either right-click on a file and select upload or download from the popup menu to move it or you can just double click on it.

filezilla-6

Step 5: Closing up Shop

When you are done moving files, all you have to do is stop the FTP server on your Android device and close down Filezilla. As easy as that.

Conclusion

I’m sure that several people will point out that FTP isn’t really very secure. I think that this use case is different because the connection will be very short and in most cases, people will do it in the privacy of their own homes.

This is my favorite method of moving files between Linux and Android.

Did you find it helpful? Do you have any suggesting for similar programs? Let us know below in the comments.

If you found this article interesting, please take a minute to share it on your favorite social media sites.

About the author
John Paul Wohlscheid

John Paul Wohlscheid

My name is John Paul Wohlscheid. I'm an aspiring mystery writer who loves to play with technology, especially Linux. You can catch up with me at: http://johnpaulwohlscheid.work/

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

It's FOSS

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.