clipshare 是一个跨平台的局域网剪切板共享工具
- Cross-platform (Windows / Linux).
- 局域网内自动发现 : UDP 组播心跳 (
239.99.115.102:41688),携带主机名,60 秒无心跳自动剔除. - 发现即互联 : 自动建立 TCP 连接,双向同步剪切板.
- 支持文本 / 富文本 / URL / 文件 / 图片,保留全部 MIME 格式.
- 剪切板内容带长度前缀分帧传输,支持大文件与粘包处理 (64MB 上限).
- 系统托盘常驻,主窗口显示在线设备列表 (Device / Address / Last Seen / Status).
- 单实例运行.
| Channel | Usage |
|---|---|
UDP 41688 (multicast 239.99.115.102) |
40 字节心跳 [magic 4B][command 4B][hostname 32B], 心跳间隔 20s |
TCP 41688 |
剪切板同步包 [length 4B big-endian][json payload], 内容 Base64 编码 |
- Ubuntu
sudo apt install qtbase5-dev build-essential -ycmake -Bbuild
cmake --build build # Ubuntu
cmake --build build --config Release # Windows (Visual Studio)Click and run. 复制任意内容,同一局域网内运行 clipshare 的设备会自动同步剪切板.
- 托盘图标实时显示在线设备数,单击或右键
Devices打开设备列表. - 关闭窗口最小化到托盘,从托盘菜单
Exit退出.
首次运行请在防火墙中放行 UDP/TCP
41688端口 (含组播).
This project is licensed under the terms of the MIT License.