无需端口转发即可托管 Minecraft
TunnelCraft 让你能够分享 Minecraft 局域网世界或运行专用 Minecraft 服务器,而无需打开路由器端口或维护公网 IP 地址。
安装 TunnelCraft,启动你的世界或服务器,并将你持久的 TunnelCraft 地址分享给你想邀请的玩家。
主要功能
- 无需路由器配置或端口转发
- 无需公网 IP 地址
- 持久且易于分享的 TunnelCraft 地址
- 支持局域网世界和专用服务器
- 支持 Fabric 和 NeoForge
- 支持 Bukkit、Paper、Purpur 和 Spigot 插件
- Premium 用户可使用额外的 TCP 和 UDP 端口转发
- 公共中继状态监控
TunnelCraft 工作原理
TunnelCraft 通过专用的基于 WebSocket 的中继网络路由 Minecraft 网络流量。
每个已连接的服务器都会获得其专属的持久 TunnelCraft 地址,例如:plpx-abc123。
玩家无需直接连接到服务器的公网 IP 地址,而是将 TunnelCraft 地址输入到他们的 Minecraft 服务器列表中。随后,TunnelCraft 会通过中继网络在玩家和服务器之间转发 Minecraft 连接。
这使得无需暴露公共网络端口或要求公网 IP 地址即可访问 Minecraft 服务器或局域网世界。
重要的客户端要求
所有连接的玩家都必须安装兼容的 Fabric 或 NeoForge 客户端版本的 TunnelCraft。
仅将 TunnelCraft 作为 Bukkit、Paper、Purpur 或 Spigot 服务器插件安装是不够的。TunnelCraft 使用其自身的隧道协议,与未修改的原版客户端不兼容。
安装
专用服务器
- 下载适用于你的 Minecraft 版本和服务端平台的正确 TunnelCraft 版本。
- 将文件放置在相应的目录中:
mods用于 Fabric 或 NeoForgeplugins用于 Bukkit、Paper、Purpur 或 Spigot
- 启动或重启服务器。
- 复制服务器控制台中显示的 TunnelCraft 地址。
- 在每个连接玩家的 Fabric 或 NeoForge 客户端上安装 TunnelCraft。
- 将 TunnelCraft 地址添加到 Minecraft 多人游戏服务器列表中。
局域网世界
- 在安装主机和每个连接客户端上安装 TunnelCraft。
- 将单人游戏世界开放给局域网。
- 运行
/tunnelcraft show。 - 复制显示的 TunnelCraft 地址。
- 将该地址分享给其他玩家。
- 其他玩家可以将该地址添加到他们的 Minecraft 多人游戏服务器列表中。
具体的 Minecraft 和加载器兼容性取决于所选的 TunnelCraft 发布版本。下载前请查看版本选项卡。
TunnelCraft 与 e4mc 对比
TunnelCraft 和 e4mc 均提供无需传统端口转发的 Minecraft 连接方式,但它们针对不同的使用场景设计。
| 功能 | TunnelCraft | e4mc |
|---|---|---|
| 主要用途 | 局域网世界和专用服务器 | 分享单人局域网世界 |
| 是否需要端口转发 | 否 | 否 |
| 是否需要公网 IP | 否 | 否 |
| 服务端平台 | Fabric, NeoForge, Bukkit, Paper, Purpur, Spigot | Fabric, Forge, NeoForge, Quilt |
| 专用服务器插件 | 是 | 否 |
| 主机端是否需要模组 | 是 | 是 |
| 加入客户端是否需要模组 | 是 | 否 |
| 是否支持原版客户端 | 否 | 是 |
| 地址类型 | 持久化的 TunnelCraft 地址 | 开放局域网时创建的公共域名 |
| 额外 TCP 转发 | Premium | 未列出 |
| 额外 UDP 转发 | Premium | 未列出 |
何时使用 TunnelCraft
TunnelCraft 专为以下用户设计:
- 运行持久化的专用 Minecraft 服务器
- 在不打开路由器端口的情况下连接服务器
- 使用 Bukkit、Paper、Purpur 或 Spigot
- 分享 Fabric 或 NeoForge 局域网世界
- 使用 Premium 转发额外的 TCP 或 UDP 端口
- 使用依赖网络的模组,如 Simple Voice Chat
何时使用 e4mc
e4mc 主要用于快速分享单人局域网世界。
仅需主机安装 e4mc。加入的玩家可以使用未修改的 Minecraft 客户端进行连接。
官方项目页面
Premium 端口转发
标准 TunnelCraft 连接通过中继网络转发 Minecraft 服务器连接。
Premium 用户可以额外转发其他 TCP 和 UDP 端口,用于使用独立网络连接的其他模组、插件、应用程序或服务。
Premium 功能
- 转发额外的 TCP 端口
- 转发额外的 UDP 端口
- 支持使用独立网络连接的服务
- 提高对依赖网络的模组和插件的兼容性
- 在 Minecraft 服务器旁配置附加服务
这可用于像 Simple Voice Chat 这样的项目,该项目使用独立的 UDP 连接进行语音通信。
附加服务仍必须配置正确的本地端口和转发端口。TunnelCraft 仅提供网络路由,不会自动配置第三方模组或插件。
中继性能
所有 TunnelCraft 流量均通过 TunnelCraft 中继网络传输。
因此,连接质量可能受到以下因素影响:
- 玩家与中继之间的路由
- Minecraft 服务器与中继之间的路由
- 参与者之间的地理距离
- 主机和玩家的互联网连接状况
- 当前的中继负载情况
- Minecraft 服务器的性能
TunnelCraft 目前运行于自托管的中继基础设施上。在高使用率期间,性能可能会发生变化。
中继软件的路由与转发性能正在持续优化。
兼容性与更新
TunnelCraft 中继协议处于活跃开发中。协议变更可能无法与旧版 TunnelCraft 保持兼容。
为确保最可靠的连接:
- 使用最新兼容的 TunnelCraft 版本
- 保持服务端插件或模组为最新版本
- 保持所有连接客户端的安装为最新版本
- 使用兼容的 Minecraft 及加载器版本
- 在生产服务器更新前,务必检查版本信息
不兼容的 TunnelCraft 版本之间的连接可能会被拒绝。
隐私与网络声明
所有通过 TunnelCraft 传输的流量均经由 TunnelCraft 中继网络路由。
服务器所有者仍需对以下内容负责:
- 其服务器配置
- 已安装的模组与插件
- 玩家访问权限
- 通过其服务器传输的内容
- 遵守适用的规则与法律
TunnelCraft 是一个独立项目,与 Mojang Studios 或 Microsoft 无隶属关系,也未获得其认可或背书。
支持 TunnelCraft
TunnelCraft 作为一个独立项目,正处于活跃开发与维护中。
反馈、测试、错误报告以及社区支持有助于提升兼容性与中继性能。
Official Website · Discord Support · Public Relay Status
Host Minecraft without port forwarding
TunnelCraft lets you share a Minecraft LAN world or run a dedicated Minecraft server without opening router ports or maintaining a public IP address.
Install TunnelCraft, start your world or server, and share your persistent TunnelCraft address with the players you want to invite.
Key features
- No router configuration or port forwarding
- No public IP address required
- Persistent, easy-to-share TunnelCraft address
- Support for LAN worlds and dedicated servers
- Fabric and NeoForge support
- Bukkit, Paper, Purpur, and Spigot plugin support
- Additional TCP and UDP port forwarding for Premium users
- Public relay status monitoring
How TunnelCraft works
TunnelCraft routes Minecraft network traffic through a dedicated WebSocket-based relay network.
Each connected server receives its own persistent TunnelCraft address, for example: plpx-abc123.
Instead of connecting directly to the server's public IP address, players enter the TunnelCraft address in their Minecraft server list. TunnelCraft then forwards the Minecraft connection between the player and the server through the relay network.
This allows a Minecraft server or LAN world to be reached without exposing a public network port or requiring a public IP address.
Important client requirement
All connecting players must install a compatible Fabric or NeoForge client version of TunnelCraft.
Installing TunnelCraft only as a Bukkit, Paper, Purpur, or Spigot server plugin is not sufficient. TunnelCraft uses its own tunneling protocol and is not compatible with unmodified vanilla clients.
Installation
Dedicated servers
- Download the correct TunnelCraft version for your Minecraft version and server platform.
- Place the file in the appropriate directory:
modsfor Fabric or NeoForgepluginsfor Bukkit, Paper, Purpur, or Spigot
- Start or restart the server.
- Copy the TunnelCraft address displayed in the server console.
- Install TunnelCraft on every connecting player's Fabric or NeoForge client.
- Add the TunnelCraft address to the Minecraft multiplayer server list.
LAN worlds
- Install TunnelCraft on the host and every connecting client.
- Open the singleplayer world to LAN.
- Run
/tunnelcraft show. - Copy the displayed TunnelCraft address.
- Share the address with the other players.
- The other players can add the address to their Minecraft multiplayer server list.
Exact Minecraft and loader compatibility depends on the selected TunnelCraft release. Check the Versions tab before downloading.
TunnelCraft compared with e4mc
TunnelCraft and e4mc both provide Minecraft connections without traditional port forwarding, but they are designed for different use cases.
| Feature | TunnelCraft | e4mc |
|---|---|---|
| Main use case | LAN worlds and dedicated servers | Sharing a singleplayer LAN world |
| Port forwarding required | No | No |
| Public IP required | No | No |
| Host platforms | Fabric, NeoForge, Bukkit, Paper, Purpur, Spigot | Fabric, Forge, NeoForge, Quilt |
| Dedicated server plugin | Yes | No |
| Mod required on host | Yes | Yes |
| Mod required on joining clients | Yes | No |
| Vanilla clients supported | No | Yes |
| Address | Persistent TunnelCraft address | Public domain created when LAN is opened |
| Extra TCP forwarding | Premium | Not listed |
| Extra UDP forwarding | Premium | Not listed |
When to use TunnelCraft
TunnelCraft is designed for users who want to:
- Run a persistent dedicated Minecraft server
- Connect a server without opening router ports
- Use Bukkit, Paper, Purpur, or Spigot
- Share a Fabric or NeoForge LAN world
- Forward additional TCP or UDP ports with Premium
- Use networking-dependent services such as Simple Voice Chat
When to use e4mc
e4mc is primarily designed for quickly sharing a singleplayer LAN world.
Only the host needs to install e4mc. Joining players can connect using an unmodified Minecraft client.
Official project pages
Premium port forwarding
Standard TunnelCraft connections forward the Minecraft server connection through the relay network.
Premium users can additionally forward other TCP and UDP ports for mods, plugins, applications, or services that use separate network connections.
Premium capabilities
- Forward additional TCP ports
- Forward additional UDP ports
- Support services that use separate network connections
- Improve compatibility with networking-dependent mods and plugins
- Configure additional services alongside the Minecraft server
This can be used with projects such as Simple Voice Chat, which uses a separate UDP connection for voice communication.
Additional services must still be configured with the correct local and forwarded ports. TunnelCraft provides the network route but does not automatically configure third-party mods or plugins.
Relay performance
All TunnelCraft traffic passes through the TunnelCraft relay network.
Connection quality can therefore be affected by:
- The route between the player and the relay
- The route between the Minecraft server and the relay
- The geographical distance between participants
- The internet connections of the host and players
- Current relay utilization
- Minecraft server performance
TunnelCraft currently operates on self-hosted relay infrastructure. Performance may vary during periods of high usage.
The relay software, routing, and forwarding performance are continuously being improved.
View the public TunnelCraft relay status
Compatibility and updates
The TunnelCraft relay protocol is actively developed. Protocol changes may not remain compatible with older TunnelCraft releases.
For the most reliable connection:
- Use the latest compatible TunnelCraft release
- Keep the server plugin or mod up to date
- Keep all connecting client installations up to date
- Use compatible Minecraft and loader versions
- Check the version information before updating a production server
Connections between incompatible TunnelCraft versions may be rejected.
Privacy and network notice
All traffic transmitted through TunnelCraft is routed through the TunnelCraft relay network.
Server owners remain responsible for:
- Their server configuration
- Installed mods and plugins
- Player access
- Content transmitted through their server
- Compliance with applicable rules and laws
TunnelCraft is an independent project and is not affiliated with or endorsed by Mojang Studios or Microsoft.
Support TunnelCraft
TunnelCraft is actively developed and maintained as an independent project.
Feedback, testing, bug reports, and community support help improve compatibility and relay performance.
下载 TunnelCraft
下载 TunnelCraft
下载 TunnelCraft
下载 TunnelCraft
下载 TunnelCraft
下载 TunnelCraft
下载 TunnelCraft
下载 TunnelCraft
下载 TunnelCraft
下载 TunnelCraft
Alpha:plpLib 依赖需单独安装
必须安装 plpLib,且 TunnelCraft 不再内置该依赖。 Modrinth 启动器会像其他必需模组一样单独安装此依赖。
- Fabric / NeoForge:将 plpLib Alpha 2 模组安装至
mods/目录。 - Forge / Quilt 26.3:将对应版本的 plpLib Alpha 2 Forge/Quilt 变体安装至
mods/目录。 - Paper:将 plpLib Alpha 2 Paper 插件安装至
plugins/目录,并与 TunnelCraft 并存。插件依赖可确保 plpLib 优先加载。
连接统计功能仍需权限支持。客户端设置位于 config/plplib.properties,配置项为 module.tunnelcraft=allowed|denied(允许/拒绝)。专用服务器设置位于 config/plplib-server.properties;Paper 平台则位于 plugins/Tunnelcraft/plplib-server.properties。若仅需本地收集数据,请设置 upload=false。Paper 管理员可使用命令 /tunnelcraft diagnostics allow|deny。
TunnelCraft 中已不再包含任何 plpLib 类或嵌套的库 JAR 文件。所有 20 种版本/加载器组合均已使用独立安装的 plpLib 进行测试,包括真实的中继断开、成功重连、持久化的本地报告以及干净的关闭流程。原生客户端的同意/报告/撤销检查覆盖了 1.21.1/NeoForge 和 26.3/Fabric。
隐私政策与 30 天硬盘存储策略: 。不会发送任何用户名、UUID、服务器地址、原始日志或堆栈跟踪信息。
Minecraft 26.3 beta
TunnelCraft 10.2.0 针对 Fabric、NeoForge、Forge、Quilt 和 Paper 的初始 Minecraft Java 26.3 beta 构建版本。
- 添加了原生的 Forge 集成,并通过 Quilt Loader 的 Fabric 兼容性提供 Quilt 分发版。
- 包含 10.2.0 版本的有界 Java PNG 解码器、透明的服务器横幅、损坏图像的安全回退机制以及横幅纹理清理功能。
- 包含持久的 TCP/UDP 转发、重连处理以及 IPv4 语音服务转发的修复。
安装
请使用 Java 25,并仅安装一个与您加载器匹配的 TunnelCraft JAR 文件:
| 构建版本 | 已验证的加载器/API | 位置 |
|---|---|---|
| Fabric | Fabric Loader 0.20.1 + Fabric API 0.166.2+26.3 | mods/,客户端/服务端 |
| NeoForge | NeoForge 26.3.0.103 | mods/,客户端/服务端 |
| Forge | Forge 66.1.8 | mods/,客户端/服务端 |
| Quilt | Quilt Loader 0.30.2 + Fabric API 0.166.2+26.3 | mods/,客户端/服务端 |
| Paper | Paper 26.3 build 249 | plugins/,仅限服务端 |
每位加入的玩家都需要一个兼容的 TunnelCraft 客户端模组,即使主机使用的是 Paper。Forge 和 NeoForge 不需要 Fabric API。
验证
通过了 107 个 Java 测试。所有五种服务器变体均在 Minecraft 26.3 上进行了测试。四个模组化服务器通过了实际的 TCP/UDP 负载和中继/服务器重启检查;Paper 通过了插件启动、进度注册、横幅/图标中继 ping 以及干净关闭的检查。所有四个客户端加载器在 Linux 上使用 Mesa 软件 OpenGL 总共通过了 36 个 PNG/帧缓冲用例和 48 个多人游戏屏幕生命周期检查。
此版本标记为 beta,以反映新的 Minecraft 26.3 加载器集成。上传的 JAR 文件是确切的已验证 TunnelCraft 10.2.0 构建版本。
服务器横幅与持久化转发
- 使用有界 Java 解码器替换原生 PNG 解码。支持详细的 RGB/RGBA 和索引式 PNG;256 KiB 输入限制保持不变。
- 修复 Minecraft 1.21.1 中半透明横幅的渲染问题。
- 在离开或重建多人服务器列表时释放横幅纹理,限制常驻纹理并丢弃过期的异步更新。
- 添加 CRC/结构验证、有界解压缩以及针对损坏图像的安全回退机制。
- 保存 TCP/UDP 转发命令,在中继/服务器重新连接后恢复它们,并实现可靠的启动/停止处理。修复当 JVM 偏好 IPv6 时的本地 IPv4 语音服务转发问题。
已使用真实的 Minecraft 客户端、多人游戏截图和帧缓冲区像素对比进行测试。技术原因、测试方法和范围:
更新后的中继已在运行。请为你的加载器和 Minecraft 版本安装匹配的 JAR 文件。Simple Voice Chat 的转发必须使用实际的本地语音端口;如果希望它在局域网重启后保持不变,请配置固定的语音端口。
修复了在 Minecraft 多人游戏列表中查看高细节 PNG 服务器横幅时导致的客户端崩溃问题(LWJGL MemoryStack: Out of stack space)。PNG 图像解码现在使用单独分配的本地缓冲区,并将调色板、RGB 和 RGBA 图像统一标准化为 RGBA。256 KiB / 2048×512 的横幅限制保持不变。已通过 Minecraft 1.21.1 NeoForge 构建及单元测试流水线验证。来源:(提交 186cb5420f9068131e1676b1d3bfcf9a3dd68f13)。Minecraft 客户端运行时的复现仍需进一步验证。
TunnelCraft 10.1.0
-
服务器横幅: 在服务器目录中将
banner.png与server-icon.png放在同一位置。推荐尺寸:1024 x 128 像素(8:1)。最大限制为:2048 x 512 像素且不超过 256 KiB,仅限 PNG 格式。TunnelCraft 客户端会在多人游戏服务器条目的背景处显示该横幅,居中裁剪并调暗以提升可读性。 -
单人隧道连接: 当你在服务器上作为唯一登录玩家通过 TunnelCraft 累计连接两小时后,即可解锁此成就。其他玩家(包括直接连接)会使计时器暂停。进度在会话和中继重启后保留。
-
连接修复: 重连、中继重启、超时处理、会话清理及 TCP 关闭更加可靠。直接服务器超时时不再重新连接到之前的隧道。延迟数据包和回调无法损坏新连接。
-
其他修复: 更安全的横幅和配置解析、速度测试失败处理、命令转发、统计状态及成就同步。
安装方法: 请使用与你的 Minecraft 版本和加载器完全匹配的文件。Fabric 构建版需要 Fabric API。Minecraft 1.21.1/1.21.11 需要 Java 21 或更高版本;26.1.1/26.1.2/26.2 需要 Java 25 或更高版本。Paper 构建版为服务器插件;连接的玩家需要安装匹配的 Fabric 或 NeoForge 客户端模组。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
评论 0
登录后参与评分
还没有评论,来抢沙发吧