Serve Buddy is a simple, lightweight HTTP file server that allows you to easily share files over your local network. It provides a user-friendly web interface for uploading and downloading files from a specified directory.
- Easy-to-use web interface
- File upload and download functionality
- Cross-platform compatibility (Windows, macOS, Linux)
- Customizable port and directory settings
- Local and network URL access
- Efficient handling of large files
- Responsive to Ctrl+C for quick shutdown
- Share files between all devices on the same local network
-
Ensure you have Python 3.6 or higher installed on your system.
-
Choose one of the following methods to get Serve Buddy:
a. Clone the repository:
git clone https://github.com/cardit1/Serve-Buddy.git cd Serve-Buddyb. Download the script directly using wget:
wget https://raw.githubusercontent.com/cardit1/Serve-Buddy/master/serve_buddy.py -o serve_buddy.pyc. Download the script directly using curl:
curl -O https://raw.githubusercontent.com/cardit1/Serve-Buddy/master/serve_buddy.py
These commands will download the serve_buddy.py file to your current directory.
To start Serve Buddy with default settings:
python serve_buddy.py
This will start the server on port 8000 and serve files from the current directory.
You can specify a custom port and directory:
python serve_buddy.py --port 8080 --dir /path/to/your/directory
- Ensure all devices (both the host and client devices) are connected to the same Wi-Fi network.
- Start Serve Buddy on your host device using the basic or custom usage instructions.
- Note the Network URL displayed in the terminal, which will be in the format
http://<your-ip-address>:<port>. - On any device connected to the same local network, open a web browser and enter the Network URL.
- You can now upload and download files using the web interface.
Note: It's crucial that all devices are connected to the same Wi-Fi network for this feature to work properly. If you're having trouble connecting, double-check your network settings on all devices.
--port: Specify the port number (default: 8000)--dir: Specify the directory to serve files from (default: current directory)
Once started, Serve Buddy will display the following information:
- Local URL:
http://localhost:<port> - Network URL:
http://<your-ip-address>:<port>
You can access the web interface using either of these URLs from a web browser.
- Open the Serve Buddy web interface in a browser.
- Click on the "Choose File" button.
- Select the file you want to upload.
- Click the "Upload" button.
- Open the Serve Buddy web interface in a browser.
- You'll see a list of files in the served directory.
- Click on a file name to download it.
To stop Serve Buddy, simply press Ctrl+C in the terminal where it's running. The server will shut down gracefully.
- Serve Buddy is designed for local network use. Be cautious when exposing it to the public internet.
- Large file uploads and downloads are handled efficiently, but may still be limited by your network speed.
Contributions to Serve Buddy are welcome! Please feel free to submit pull requests or open issues for bugs and feature requests.