Skip to content

Installation

yongduan edited this page Apr 8, 2026 · 1 revision

Installation

Prerequisites

  • Node.js v14 or later
  • npm (comes with Node.js)

Install

git clone https://github.com/duanery/lan-transfer.git
cd lan-transfer
npm install

Start the Server

# Default storage directory (./uploads)
node server.js

# Custom storage directory
node server.js /path/to/your/directory

Output

On startup, the server prints the access URLs:

========================================
  LAN File Transfer Server
========================================
  Local:   http://localhost:3000
  LAN:     http://192.168.1.100:3000
  Dir:     /home/user/shared-files
========================================
  Open the LAN address on any device in the same network
  Ctrl+C to stop

Open the LAN address on any device connected to the same network to start transferring files.

Clone this wiki locally