GithubHelp home page GithubHelp logo

gzehua / p2p-file-sharing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tambapps/p2p-file-sharing

0.0 0.0 0.0 2.91 MB

Peer to peer project to share files between two devices on a same local network

License: GNU General Public License v3.0

Shell 0.05% Java 69.65% Groovy 2.33% Kotlin 27.80% CSS 0.11% Batchfile 0.06%

p2p-file-sharing's Introduction

P2P File Sharing

This project aims to transfer files from one device (computer or android smartphone) to another. It works only if the two devices are on the same local network. If one of the devices is an android smartphone, you can share data with it and connect the other device to the smartphone's data.

You can download the apps here or here

P2P Library

This is the library I built, used by all the apps (Android, command-line and Desktop). It is because of this library that we can also share files between android and desktop.

Android app

This is the Android app that performs P2P file sharing

alt text

Get it on Google Play

Desktop app

The desktop app was developed with JavaFX and Spring Boot (for dependency injection). It was developed in Java 16.

alt text

How it works

This project only works if the two devices are on the same local network. This allows peers to communicate between them, without any intermediate server. Your data goes from the sender, directly to the receiver

Automatic peer discovery

The receiver can detect sending peers automatically. This is implemented with UDP multicast:

The receiver register to a multicast address group, and the sender sends its peer data periodically to that group, using UDP packet.

p2p-file-sharing's People

Contributors

nelson888 avatar tambapps 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.