lanserve

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

LANserve

A lightweight local file server written in Go.

Installation

Using Go

If you have Go installed:

go install github.com/Dev-syphax/lanserve@latest

Then run:

lanserve
Using the install script

On Linux or macOS:

curl -fsSL https://raw.githubusercontent.com/Dev-syphax/lanserve/main/install.sh | bash

Then:

lanserve
Download a release

Download the latest pre-built release:

Download LANserve

Available for:

  • Linux — AMD64 / ARM64
  • macOS — Intel / Apple Silicon
  • Windows — AMD64 / ARM64

Clone & Build

Clone the repository:

git clone https://github.com/Dev-syphax/lanserve.git
cd lanserve

Build the application:

go build -o lanserve .

Run it:

./lanserve

Usage

Start LANserve in the current directory:

lanserve

By default, the server runs on port 8080.

That's it. Open the printed URL in any browser on your network:

┌──────────────────────────────────────────────────────────┐
│    LANserve — Local File Server                          │
├──────────────────────────────────────────────────────────┤
│   Local:   http://localhost:8080                         │
│   Network: http://192.168.x.x:8080                       │
│   Serving: /your/current/directory                       │
│   Auth:    Disabled                                      │
└──────────────────────────────────────────────────────────┘

To access the server from another device on the same network, use the network address displayed by LANserve.

Serve a specific directory
lanserve --dir ./files
Change the port
lanserve --port 3000

Then open:

http://localhost:3000
Specify the host
lanserve --host 0.0.0.0
Enable access protection

You can require an access code for uploads and deletes:

lanserve --code my-secret-code
Combine options
lanserve  --dir ./Downloads  --port 8080  --host 0.0.0.0  --code my-secret-code

Options

Option Short Default Description
--port -p 8080 Port to listen on
--host — 0.0.0.0 Address to bind to
--dir -d . Directory to serve
--code -c — Access code for uploads/deletes

Examples

Serve your current directory:

lanserve

Serve a shared folder:

lanserve -d ~/shared

Run on port 3000:

lanserve -p 3000

Serve a folder with an access code:

lanserve -d ./files -c my-secret-code

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL