Coder Social home page Coder Social logo

p-drop-linux's Introduction

p-drop-linux

Transfer files between iOS and Linux without requiring a cloud service.

Transfers are faster, easier and more secure because they are direct with nothing leaving the local network. Files can also be left up and available for download to iOS at all times to anyone joining the WiFI network

Requirements:

  1. Both devices on the same WiFi network

  2. On Linux, download p-drop from releases above (link: https://github.com/cenkbilgen/p-drop-linux/releases/latest/download/p-drop.zip). Unzip the file and run it from the command-line, ./p-drop or ./p-drop file1 file2. Alternatively, compile your own binary, see below.

  3. On iOS, the p-drop app

Usage:

On your Linux shell run: p-drop file1 file2 and the files will appear on the iOS app ready to download.

At the same time you can select files on your iOS device to upload to Linux.

If the iOS app does not see the files automatically, run with -q to generate a QR code on screen, which the iOS app can scan to get the info it needs.

Compiling

Just run make. This will get the Go dependencies, compile and link and you will end up with a p-drop binary file. The release version is made with make dist, it's just statically linked and stripped. See the Makefile.

How it works:

It's just a https server with a small API to list, send and recieve files. A unique keypair for TLS is generated the first time it's run. The Linux service advertises itself using Bonjour/ZeroConf with multicast-DNS, which the iOS app picks up on to request a keyed list of what's available to download and how to upload. Files are sent to the iOS device using base64 mime encoding multi-part form data and recieved from iOS as binary streams.

p-drop-linux's People

Contributors

cenkbilgen avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.