LocalShare is a utility tool designed for sharing files and small data snippets between devices on the same network.
LocalShare utilizes Flask to create a local server on a host device. All shared files are temporarily stored on the host device and can be deleted once sharing is complete.
The project has been tested with the following environment:
1. Python 3.8.10
2. Flask 3.0.3
-
Clone the project:
git clone https://github.com/jchaudhary21/LocalShare.git
-
Install Flask ()
pip install flask==3.0.3
-
Open your
.bashrc
file:nano ~/.bashrc
-
Add a function at the bottom of the file:
LocalShare() { # Insert the path to your local-share.bash file here }
-
Save the file (Ctrl + S) and exit the editor (Ctrl + X).
-
Source your updated
.bashrc
file:source ~/.bashrc
-
Run the
LocalShare
command in your terminal. -
You'll see a local IP address displayed, formatted as:
192.168.x.xxx:5000
-
Access this IP address from a web browser on any device connected to the same network.
-
You can now view available files or upload new ones through the web interface.