局域网传输工具
编辑
60
2023-10-31
局域网共享文件大多数人可能都是用微信文件助手一类的IM工具,但是对于大文件来说真的太慢了,这里分享几个自己常用的局域网分享的工具。
目标
- 全平台
- 我自己有基本上所有的平台设备,各个设备之前传输都是有可能的,所以尽量能够全平台。
- 主要是打通IOS和PC,以及Macos和安卓之间的障碍 - 轻量级
- 不能太重了,毕竟不是天天都在用。
- 能绿色安装最好不过了 - 简单易用
- 能跑满局域网的带宽
- 有文件夹的上传和下载的功能
简单的文字和少量图片
这块确实是IM有着最好的体验。
微信文件助手
支持网页端的文件传输工具,现在已经独立了出来。
Telegram收藏夹
TG用着非常好的同步机制,每个终端内容一直,不限制内容,收藏夹也是我分享的利器,缺点可能就是网速有限制。
KDE Connect
这应该是唯一一个全平台的通知、剪贴版、文件传输、ppt翻页等功能一体的工具了。
大文件和大量图片的传输
我经常需要把图片从手机中导出来到电脑上处理,以往都是靠网盘同步的,受限于带宽和网速,不算是很理想,所以对于局域网的传输要求比较高。
DUFS——开源工具
https://github.com/sigoden/dufs
Dufs is a distinctive utility file server that supports static serving, uploading, searching, accessing control, webdav…
用法
Dufs is a distinctive utility file server - https://github.com/sigoden/dufs
USAGE:
dufs [OPTIONS] [--] [root]
ARGS:
<root> Specific path to serve [default: .]
OPTIONS:
-b, --bind <addr>... Specify bind address
-p, --port <port> Specify port to listen on [default: 5000]
--path-prefix <path> Specify a path prefix
--hidden <value> Hide paths from directory listings, separated by `,`
-a, --auth <rule>... Add auth for path
--auth-method <value> Select auth method [default: digest] [possible values: basic, digest]
-A, --allow-all Allow all operations
--allow-upload Allow upload files/folders
--allow-delete Allow delete files/folders
--allow-search Allow search files/folders
--allow-symlink Allow symlink to files/folders outside root directory
--enable-cors Enable CORS, sets `Access-Control-Allow-Origin: *`
--render-index Serve index.html when requesting a directory, returns 404 if not found index.html
--render-try-index Serve index.html when requesting a directory, returns directory listing if not found index.html
--render-spa Serve SPA(Single Page Application)
--assets <path> Use custom assets to override builtin assets
--tls-cert <path> Path to an SSL/TLS certificate to serve with HTTPS
--tls-key <path> Path to the SSL/TLS certificate's private key
--log-format <format> Customize http log format
--completions <shell> Print shell completion script for <shell> [possible values: bash, elvish, fish, powershell, zsh]
-h, --help Print help information
-V, --version Print version information
CHFS——闭源工具
CuteHttpFileServer/chfs是一个免费的、HTTP协议的文件共享服务器,使用浏览器可以快速访问。它具有以下特点:
CuteHttpFileServer/chfs是一个免费的、HTTP协议的文件共享服务器,使用浏览器可以快速访问。它具有以下特点:
- 单个文件,核心功能无需其他文件
- 跨平台运行,支持主流平台:Windows,Linux和Mac
- 界面简洁,简单易用
- 支持扫码下载和手机端访问,手机与电脑之间共享文件非常方便
- 支持账户权限控制和地址过滤
- 支持快速分享文字片段
- 支持webdav协议
与其他常用文件共享方式(如FTP,飞秋,网盘,自己建站)相比,具有使用简单,适用场景更多的优点,在个人使用以及共享给他人的场景中非常方便快捷。
用法
usage: chfs.exe []
Flags:
--help Show context-sensitive help (also try --help-long and
--help-man).
--path=DIRECTORIES Directories where store shared files, separated by '|'.
--port=PORT HTTP listening port(Default is 80).
--allow=LIST Allowed IPv4 addresses(Allow any address by default).
White list mode: "listitem1[,listitem2,...]" e.g.
"192.168.1.2-192.168.1.10,192.169.1.222" allows this 10
addresses.
Black list mode: "not(listitem1[,listitem2,...])" e.g.
"not(192.168.1.2-192.168.1.10,192.169.1.222)" bans this 10
addresses!
--rule=LIST Access rules(anybody can access any thing by default).
List defines like:"USER:PWD:MASK[:DIR:MASK...][|...]":
1,USER and PWD is account name and password
2,MASK:''=NO present,'r'=read,'w'=write,'d'=delete
3,r=view+download,w=r+upload+create+rename,d=w+delete
4,DIR is directory name, allows wildcard('*' & '?')
5,The 3rd field is access mask of shared root directory
6,The optional fields is pairs of sub-directory and mask
7,The optional sub-directory's mask overwrite parent's
8,You should avoid '|' ':' and white space(exclude DIR)
For instance: "::|root:123456:rw" bans guest, and defines
a account 'root' can do anything
--log=DIRECTORY Log directory. Empty value will disable log.
--file=FILE A configuration file which overwrites & enhence the
settings.
--version Show application version.
- 0
- 0
-
分享