MacVNC-Turbo is a brutally minimalist, zero-dependency solution for remote controlling a Mac from Windows.
Its biggest feature: A tiny, standalone WebSocket proxy. You do not need to install any heavy third-party remote control software, clients, or runtime libraries on either machine. Just run the lightweight proxy executable, open the HTML file in your browser, and you get instant, ultra-low latency, native access to your macOS desktop.
MacVNC-Turbo 是一个极致精简、零依赖的跨平台 Mac 远程控制解决方案。
我们最大的特点:核心仅包含一个极小的 WebSocket 代理程序。你完全不需要在两端安装任何臃肿的第三方远程软件、客户端或运行库。只需运行这个轻量级的代理,用浏览器打开一个网页,就可以直接获得超低延迟的 Mac 桌面控制权!极客、纯净、即插即用。
---
- 🪶 Zero Dependencies & Browser-Based: No installations required. Connect directly via Chrome or Edge using a single HTML file. (零依赖 & 纯浏览器控制:无需安装任何客户端,一个 HTML 文件直接在 Edge/Chrome 浏览器中完成控制。)
- 🚀 Tiny Ultra-Low Latency Proxy: A micro C++ native Windows proxy that translates VNC frames at nanosecond speed. (极小体积的低延迟代理:原生的 C++ 微型代理程序,纳秒级转发 VNC 数据包,榨干局域网极限。)
- 💻 Protocol-Level Modifier Swapping: Use Left Ctrl as the Mac Cmd key (e.g., Ctrl+C, Ctrl+V, Ctrl+A). Use Right Ctrl to send a real Ctrl signal (e.g., Right Ctrl+C for SIGINT in a terminal). Implemented via RFB protocol monkey-patching — zero double-typing bugs. (底层协议级按键映射:左 Ctrl 自动转换为 Mac 的 Cmd 指令;右 Ctrl 原样发送真实 Ctrl 信号(如终端 SIGINT)。彻底消灭双击/抢跑 Bug。)
- 🏎️ Overdrive Mode: Force macOS to stop applying heavy compression and let your GPU take over rendering. (Overdrive 性能全开模式:强制接管浏览器 GPU 3D 渲染,解放高分辨率(Retina)下的卡顿灾难。)
- 🪟 Pixel-Perfect 1:1 Display: Disable scaling to enjoy perfectly crisp, unscaled retina display text. (像素级原画显示:支持关闭浏览器缩放,实现 1:1 绝对物理像素点对点显示,字体锐利清晰。)
- 🍏 Apple Auth Support: Automatically handles macOS's proprietary VNC authentication (username + password). (完美兼容 Apple Auth 协议:自动处理 macOS 专属的用户名+密码二次安全校验,告别连接卡死。)
- 📋 Clipboard Bridge: Bidirectional clipboard sync via a separate WebSocket channel, completely bypassing Apple VNC's broken clipboard support. Pure Python, zero external dependencies. Supports full Unicode including Chinese. (剪切板双向同步桥接:通过独立 WebSocket 通道绕过 Apple VNC 协议层的剪切板缺陷,实现真正的双向剪切板同步。纯 Python 实现,无需任何第三方库,完整支持中文等 Unicode 内容。)
---
Run the compiled proxy executable, pointing it to your Mac's IP address and a local port of your choice. (直接运行代理程序,指向你 Mac 在局域网的 IP 地址即可打通隧道:)
WebsocketTcp.exe <Your\_Mac\_IP> 6080- Double-click
vncmac.htmlto open it in Chrome or Edge. - Ensure the Proxy URL matches your local port (default:
ws://127.0.0.1:6080). - Click Connect. When prompted, enter your Mac login username and password.
- Enjoy a flawless remote desktop experience!
(双击 vncmac.html 在浏览器中打开,确认代理端口一致,点击连接后输入 Mac 账号密码即可。)
---
Apple's built-in VNC (Screen Sharing) does not support clipboard sync over the standard VNC protocol. The Clipboard Bridge is a lightweight Python WebSocket server that runs on the Mac and provides true bidirectional clipboard sync.
(Apple 自带 VNC 不支持标准 VNC 剪切板协议。剪切板桥接是一个运行在 Mac 上的轻量级 Python WebSocket 服务器,提供真正的双向剪切板同步。)
# No token (LAN/localhost only)
python3 clipboard\_bridge.py
# With token (recommended when exposing to network)
python3 clipboard\_bridge.py 9001 your-secret-token
# Default port is 9001. Listens on 0.0.0.0 (all interfaces).In the top bar, find the 📋 Bridge: input. Enter the WebSocket URL and click Connect:
ws://127.0.0.1:9001 # localhost / SSH tunnel
ws://192.168.1.100:9001 # LAN direct
ws://192.168.1.100:9001?token=xxx # with token auth
The dot turns 🟢 when connected. If it drops unexpectedly, an alert will appear with troubleshooting details. (连接成功后指示灯变为 🟢。如果意外断开,会弹出告警提示并说明可能原因。)
| Button | Action |
|---|---|
| 📋 →Mac | Copies browser clipboard → sets Mac clipboard. Then press Cmd+V on Mac. |
| 📋 Mac→ | Reads Mac clipboard → writes to browser clipboard. |
Both buttons require the Bridge to be connected. Without the Bridge, clipboard sync is unavailable — this is an Apple VNC protocol limitation.
(两个按钮均需 Bridge 已连接。没有 Bridge 时剪切板同步不可用,这是 Apple VNC 协议层面的限制。)
If accessing the Mac from outside the LAN, forward port 9001 alongside the VNC port: (从局域网外访问时,需同时转发 VNC 和桥接端口:)
ssh -L 6800:localhost:6800 -L 9001:localhost:9001 user@your-mac-ipThen use ws://127.0.0.1:9001 in the browser as usual.
---
If you have a Retina Mac (4K/5K) and experience lag over Wi-Fi: (如果你控制的是 4K/5K 分辨率的 Mac 且感觉卡顿:)
- Check 🚀 Overdrive Mode in the top bar to force maximum framerate.
- Uncheck 🪟 Scale to disable JavaScript scaling lag.
- Crucial: Change your Mac's display resolution to 1920×1080 (HiDPI) during remote sessions. Standard VNC protocol struggles to software-encode 4K pixels quickly enough.
---
This project's web frontend utilizes the core RFB implementation from noVNC. We extend our gratitude to the noVNC team for their incredible open-source contribution to browser-based VNC clients.
(本项目的网页前端核心 RFB 协议解析依赖于优秀的开源项目 noVNC。特此向 noVNC 团队致谢!)
---
MIT License
Copyright (c) 2024
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.