Skip to content

Create an FTP server using on raspberry pi and build your own wireless storage & backup solution for home.

License

Notifications You must be signed in to change notification settings

kevalpatel2106/remote-storage-android-things

Repository files navigation

Remote Storage

Build Status

Your one stop solution for remote file storage.

Connect your old usb hard drive with USB port or the thumb drive in Raspberry pi and access it anywhere in you home wireless. This application will turn you raspberry pi a FTP server. Once you mount your usb drive with the Android system, This will make it available it in your local network.

Mount USB drive:

  • Plug you USB drive at any of the USB port in your Raspberry Pi.
  • Open adb shell by typing below command in terminal (Make sure your raspberry pi is connected via adb):
adb shell
  • Mount the USB drive by running below command in adb shell (Your USB drive srould be formatted in FAT file system.):
su
mkdir /mnt/usb
mount -t vfat -o rw /dev/block/sda1 /mnt/usb
  • Run "Remote Storage" application.

Build and run the application:

  • Connect your rapberry pi running on Android Things via adb.
  • On Android Studio, select the module in the select box by the "Run" button, and then click on the "Run" button. If you prefer to run on the command line, run following command in terminal in the root of the project.
./gradlew app:installDebug
adb shell am start com.example.androidthings.simplepio/com.kevalpatel2106.remotestorage.MainActivity

Access the FTP server:

  • FTP server is running on the IP on which your rapberry pi is connected. The port address is 53705.
    • Port : 53705
    • URL : ftp://{YOUR IP}:53705
    • Username : admin
    • Password : admin

How to access on my bowser?

  • Open ftp://{YOUR IP}:53705 url in your bowser and enter username and password.

How to access on my computer?

How to access on my mobile?

  • Android : Download ES File manager and create new FTP connection under Network section. Use above credentials and connect.

Note:

Everytime raspberry pi restarts you need to mount USB drive and run the application.

Questions?🤔

Hit me on twitter Twitter

License

Copyright 2017 Keval Patel

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Create an FTP server using on raspberry pi and build your own wireless storage & backup solution for home.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages