🔧 【用途定位】
- tunnelto 是 Rust 编写的单二进制内网穿透工具,MIT 开源,ngrok 的免费替代品。
- 将本地 localhost 服务通过公网 URL 暴露,支持自定义子域名和自建服务端。
📋 【核心用法】
- 安装:直接下载 exe 或
cargo install tunnelto - 基本暴露:
tunnelto --port 3000 - 自定义子域名:
tunnelto --port 3000 --subdomain myapp - HTTPS 转发:
tunnelto --port 3000 --scheme https
🎯 【适用场景】
- Webhook 调试(支付回调、OAuth)
- 移动端联调
- 给他人展示本地 Demo
- 内网穿透
🔗 【相关链接】
- GitHub: https://github.com/agrinman/tunnelto
- 官网: https://tunnelto.dev/
⏱️ 时效性: low
标签: tool