Localsend: An open-source cross-platform alternative to AirDrop
LocalSend: An open-source cross-platform alternative to AirDrop
LocalSend:一款开源的跨平台 AirDrop 替代方案
LocalSend is a free, open-source app that allows you to securely share files and messages with nearby devices over your local network without needing an internet connection. LocalSend 是一款免费的开源应用程序,允许您在无需互联网连接的情况下,通过本地网络与附近的设备安全地共享文件和消息。
About
关于
LocalSend is a cross-platform app that enables secure communication between devices using a REST API and HTTPS encryption. Unlike other messaging apps that rely on external servers, LocalSend doesn’t require an internet connection or third-party servers, making it a fast and reliable solution for local communication. LocalSend 是一款跨平台应用,通过 REST API 和 HTTPS 加密实现设备间的安全通信。与依赖外部服务器的其他消息应用不同,LocalSend 不需要互联网连接或第三方服务器,这使其成为一种快速且可靠的本地通信解决方案。
Download
下载
It is recommended to download the app either from an app store or from a package manager because the app does not have an auto-update. 建议通过应用商店或包管理器下载该应用,因为该程序目前不支持自动更新。
Compatibility
兼容性
| Platform | Minimum Version | Note |
|---|---|---|
| 平台 | 最低版本 | 备注 |
| Android | 5.0 | - |
| iOS | 12.0 | - |
| macOS | 11 Big Sur | Use OpenCore Legacy Patcher 2.0.2 (See #1005) |
| Windows | 10 | The last version to support Windows 7 is v1.15.4. |
Setup
设置
In most cases, LocalSend should work out of the box. However, if you are having trouble sending or receiving files, you may need to configure your firewall to allow LocalSend to communicate over your local network. 在大多数情况下,LocalSend 开箱即用。但是,如果您在发送或接收文件时遇到问题,可能需要配置防火墙以允许 LocalSend 在本地网络上进行通信。
Also make sure to disable AP isolation on your router. It should be usually disabled by default but some routers may have it enabled (especially guest networks). 此外,请确保关闭路由器上的 AP 隔离(AP Isolation)。该功能通常默认关闭,但某些路由器(尤其是访客网络)可能会将其开启。
How It Works
工作原理
LocalSend uses a secure communication protocol that allows devices to communicate with each other using a REST API. All data is sent securely over HTTPS, and the TLS/SSL certificate is generated on the fly on each device, ensuring maximum security. LocalSend 使用一种安全通信协议,允许设备通过 REST API 相互通信。所有数据均通过 HTTPS 安全传输,且 TLS/SSL 证书在每台设备上即时生成,从而确保了最高级别的安全性。
Getting Started
入门指南
To compile LocalSend from the source code, follow these steps: 若要从源代码编译 LocalSend,请按照以下步骤操作:
- Install Flutter directly or using fvm.
- 直接安装 Flutter 或使用 fvm 安装。
- Install Rust.
- 安装 Rust。
- Clone the LocalSend repository.
- 克隆 LocalSend 仓库。
- Run
cd appto enter the app directory. - 运行
cd app进入应用目录。 - Run
flutter pub getto download dependencies. - 运行
flutter pub get下载依赖项。 - Run
flutter runto start the app. - 运行
flutter run启动应用。
Contributing
参与贡献
We welcome contributions from anyone interested in helping improve LocalSend. If you’d like to contribute, there are a few ways to get involved: Translation, Bug Fixes, and Improvements. 我们欢迎任何有兴趣帮助改进 LocalSend 的人参与贡献。如果您想参与,可以通过以下几种方式:翻译、修复 Bug 以及改进功能。
Troubleshooting
故障排除
If your device is not visible, make sure to disable AP-Isolation on your router. If you are on Windows, ensure your network is configured as a “private” network, as Windows might be more restrictive when the network is configured as public. 如果您的设备不可见,请确保关闭路由器上的 AP 隔离。如果您使用的是 Windows,请确保将网络配置为“专用”网络,因为当网络配置为“公用”时,Windows 的限制可能会更严格。