Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tambapps/p2p-file-sharing
Peer to peer project to share files between two devices on a same local network
https://github.com/tambapps/p2p-file-sharing
android java javafx p2p peer-to-peer tcp udp
Last synced: about 1 month ago
JSON representation
Peer to peer project to share files between two devices on a same local network
- Host: GitHub
- URL: https://github.com/tambapps/p2p-file-sharing
- Owner: tambapps
- License: gpl-3.0
- Created: 2018-05-08T22:43:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-03T19:43:44.000Z (over 1 year ago)
- Last Synced: 2024-05-07T18:14:59.652Z (8 months ago)
- Topics: android, java, javafx, p2p, peer-to-peer, tcp, udp
- Language: Java
- Homepage:
- Size: 2.84 MB
- Stars: 26
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://tambapps-portfolio.herokuapp.com/fandem/) or [here](https://github.com/tambapps/P2P-File-Sharing/releases/latest)
## 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](https://raw.githubusercontent.com/tambapps/P2P-File-Sharing/master/screenshots/android.png)
[](https://play.google.com/store/apps/details?id=com.tambapps.p2p.peer_transfer.android)
## Desktop app
The desktop app was developed with JavaFX and Spring Boot (for dependency injection). It was developed in Java 16.
![alt text](https://raw.githubusercontent.com/tambapps/P2P-File-Sharing/master/screenshots/desktop.png)
## 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.