Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

A small Node.js app designed for sharing files while on the same network. Especially useful when you are trying to get a file from a friend and their device has a single Type-C port used for charging.

License

Notifications You must be signed in to change notification settings

barissenkal/Node.js-LAN-File-Sharing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js-LAN-File-Sharing version: beta

A small Node.js app designed for sharing files while on the same network. Especially useful when you are trying to get a file from a friend and their device has a single broken USB port.

Features

  • Easy to use Drag and Drop file upload.
  • Faster than uploading to a server then downloading since you are the server.
  • Works with large files (tested with >2gb).
  • The page opens fast due to being lightweight. (Native JS + vue 2.x)

How to use

  1. Clone (or download as zip) this project from github
  2. Open terminal (or command line) in the project's folder.
  3. Run npm install and then node main.js.
  4. The project will display your LAN ip and port (8080 by default) in the terminal once running.
  5. On another device in the LAN, go to the url:port.
  6. Drag & Drop any file in browser to transfer.

Project saves sent files in "files" folder. Also files in "files" folder can be downloaded from the browser.

PORT environment variable is used to change the port. e.g. export PORT=3030; node main.js

Screenshots

Imgur

Your LAN IP is shown on the page in addition to console output. Files in "files" directory are also listed for download.

Imgur

Drag and Drop file upload. Archived without any javascript library.

About

A small Node.js app designed for sharing files while on the same network. Especially useful when you are trying to get a file from a friend and their device has a single Type-C port used for charging.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published