- Python 68.5%
- Batchfile 29.4%
- Shell 2.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| gar..drop.desktop | ||
| gar..drop.sh | ||
| LICENSE | ||
| localgardrop.py | ||
| README.md | ||
| start..gar..drop.bat | ||
| start..gar..drop.command | ||
localgardrop
A simple program similar to AirDrop or LocalSend. File transfer over a local network. A connection is established using an encrypted session to access the local network.
SECURE FILE TRANSFER SYSTEM: TRANSFER FILES BETWEEN DEVICES BY RUNNING A LOCAL SERVER OVER A LOCAL NETWORK
- The device that runs the Python code acts as a TRANSMITTER. The other device acts as a RECEIVER.
- RUN THIS ON BOTH COMPUTERS FOR FILE TRANSFER. IT ASSIGNS A SEPARATE IP ADDRESS TO EACH.BOTH DEVICES BECOME BOTH RECEIVERS AND TRANSMITTERS.
- If you enter the IP address displayed on the device into another device, the other device will act as the receiver.
- To transfer files from your Linux distro.s PC to your other device, run the desktop file on your Linux PC.
- To transfer files from your Windows PC to your phone, run the batch file (.bat) on your Windows PC.
- To transfer files from your phone to your other devices, tap the âgar..drop.shâ shortcut in the âTERMUX:WIDGETâ app's widget on your Android device.
- To transfer files from your apple devices to your other devices, run the command file on your apple device.
- You'll need to enter the username and password you've set.
- Please set a temporary USERNAME and PASSWORD for secure file transfer in the pop-up window.
- Next, open the browser on the other device (the RECEIVER device) and connect to the IP web address displayed on the device where you ran the Python code (the TRANSMITTER device).
- In other words, enter the address 192.168.1.xx:8000âas shown on the screenâinto the RECEIVER deviceâs browser.
Steps for Android device:
-
Download the files from the Releases section.
-
Extract the contents of the compressed file to the âDownloadsâ folder.
-
Copy the file to the ~/.shortcuts folder:
First, make sure Termux has permission to access your phoneâs storage (the Downloads folder). If you havenât granted storage permission yet, run the following command first and tap âAllowâ in the prompt that appears:
termux-setup-storage
- Once you've sorted out the permissions, run the following command to copy your file from the Downloads folder to the .shortcuts folder:
cp ~/storage/downloads/gar..drop.sh ~/.shortcuts/
(Note: If you encounter an error due to the periods in the filename, you can enclose the filename in quotes and type it as follows: cp ~/storage/downloads/"gar..drop.sh" ~/.shortcuts/.)
-
Adding a File to Termux:Widget The way Termux:Widget works is very simple: it automatically adds all executable files in the ~/.shortcuts/ folder to the widget list. You donât need to do anything extra; you just need to grant the file execution permissions.
-
To grant the necessary permissions to the file, run the following command:
chmod +x ~/.shortcuts/gar..drop.sh
- After entering the command, return to your phoneâs home screen.
If the Termux widget is already added, youâll see the gar..drop.sh file in the menu that opens when you tap it.
If it doesnât appear in the list, press and hold the widget on the home screen to delete it, then add a new Termux:Widget to your home screen from the menu. The list will update, and your file will be there.
-
Tap the
gar..drop.shwidget in the Termux:Widget on the home screen. This will run the localgardrop.py file in Termux. -
In other words, enter the address 192.168.1.xx:8000âas shown on the screenâinto the RECEIVER deviceâs browser.
-
Please set a temporary USERNAME and PASSWORD for secure file transfer in the pop-up window.
-
Select and send or receive your files.
-
Transfer the files.
Steps for Linux distros device:
-
Download the files from the Releases section.
-
Extract the contents of the compressed file to the âDownloadsâ folder.
-
For security reasons, Linux does not run newly created shortcuts like this directly; you must grant it permission.
-
Granting Permissions via the Graphical User Interface:
-
Right-click the gar..drop.desktop file you created.
-
Go to the Properties > Permissions tab.
-
Check the "Allow executing file as program" option. (If you're using Ubuntu/GNOME, you may also see the "Allow Launching" option directly in the menu when you right-click the file; click that.)
-
-
Granting Permissions via the Terminal (Alternative):
- Run the following command in the terminal:
chmod +x gar..drop.desktop- Now, when you double-click this .desktop file, the system will automatically launch your Python script and your program will run. You can copy this file as you like or move it to your Applications menu (the ~/.local/share/applications/ folder).
-
In other words, enter the address 192.168.1.xx:8000âas shown on the screenâinto the RECEIVER deviceâs browser.
-
Please set a temporary USERNAME and PASSWORD for secure file transfer in the pop-up window.
-
Select and send or receive your files. Transfer the files.
Steps for Windows devices:
-
Download the files from the Releases section.
-
Extract the contents of the compressed file to the âDownloadsâ folder.
-
Double-click the
start..gar..drop.batfile. The localgardrop.py file will run in the Command Prompt window. -
In other words, enter the address 192.168.1.xx:8000âas shown on the screenâinto the RECEIVER deviceâs browser.
-
Please set a temporary USERNAME and PASSWORD for secure file transfer in the pop-up window.
-
Select and send or receive your files.
-
Transfer the files.
Steps for apple's OSs devices:
-
Download the files from the Releases section.
-
Extract the contents of the compressed file to the âDownloadsâ folder.
-
Now we need to grant this file execution permissions on a apple devices. Open Terminal and type the following:
chmod +x
(Leave a space after â+x,â drag the start..gar..drop.command file into the Terminal window, and then press Enter).
-
Run the
start..gar..drop.commandfile: Now, when you double-click this .command file, it will automatically open a Terminal window, navigate to the fileâs location, and run the localgardrop.py file. -
In other words, enter the address 192.168.1.xx:8000âas shown on the screenâinto the RECEIVER deviceâs browser.
-
Please set a temporary USERNAME and PASSWORD for secure file transfer in the pop-up window.
-
Select and send or receive your files.
-
Transfer the files.
Not: In version 2.0 (20), set your server username and password once using the code in the localgardrop.py file.
For the security of your files, we recommend that you change your password.
To do this, modify the following lines:
# --- SETTINGS ---
PORT = 8080
USER_ID = "<Your_User_ID_name>"
PASSWORD = "<Your_password>"
Default USER_ID:
admin2
Default PASSWORD:
1a2b.3c4d-