Skip to content

cardit1/Serve-Buddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Serve Buddy

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.

Features

  • 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

Installation

  1. Ensure you have Python 3.6 or higher installed on your system.

  2. 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-Buddy
    

    b. Download the script directly using wget:

    wget https://raw.githubusercontent.com/cardit1/Serve-Buddy/master/serve_buddy.py -o serve_buddy.py
    

    c. 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.

Usage Guide

Basic Usage

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.

Custom Port and Directory

You can specify a custom port and directory:

python serve_buddy.py --port 8080 --dir /path/to/your/directory

Sharing Files Across Devices on the Same Local Network

  1. Ensure all devices (both the host and client devices) are connected to the same Wi-Fi network.
  2. Start Serve Buddy on your host device using the basic or custom usage instructions.
  3. Note the Network URL displayed in the terminal, which will be in the format http://<your-ip-address>:<port>.
  4. On any device connected to the same local network, open a web browser and enter the Network URL.
  5. 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.

Command-line Options

  • --port: Specify the port number (default: 8000)
  • --dir: Specify the directory to serve files from (default: current directory)

Accessing Serve Buddy

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.

Uploading Files

  1. Open the Serve Buddy web interface in a browser.
  2. Click on the "Choose File" button.
  3. Select the file you want to upload.
  4. Click the "Upload" button.

Downloading Files

  1. Open the Serve Buddy web interface in a browser.
  2. You'll see a list of files in the served directory.
  3. Click on a file name to download it.

Stopping Serve Buddy

To stop Serve Buddy, simply press Ctrl+C in the terminal where it's running. The server will shut down gracefully.

Notes

  • 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.

Contributing

Contributions to Serve Buddy are welcome! Please feel free to submit pull requests or open issues for bugs and feature requests.

License

MIT License

About

πŸ“ Serve Buddy: Swift Local File Sharing πŸš€ Lightweight Python HTTP server for easy file sharing on your local network πŸ–₯️ User-friendly web interface for uploads and downloads πŸ“Š Efficient large file handling πŸ”§ Customizable port and directory πŸ’» Cross-platform (Windows, Mac, Linux) Share files effortlessly with one simple command! πŸŽ‰

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors