跳到正文

ws2tcp

作者:MooreFoss

Allow players to connect to the server via WebSocket.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

ws2tcp

Github

ws2tcp is a Fabric-based Minecraft client mod that allows players to connect to Minecraft servers via the WebSocket protocol. This mod is useful for scenarios where you need to access servers through a WebSocket proxy, such as cloud gaming, CDN, or NAT traversal.

Features

  • Proxy local port 25565 to a specified WebSocket address
  • Automatically read and save proxy configuration
  • Automatically add the local proxy server to the server list
  • Simple graphical interface with multi-language support (English and Simplified Chinese)

Installation

  1. Requirements
  • Minecraft 1.21.4
  • Fabric Loader 0.16.12 or above
  1. Install the Mod
  • Download the built ws2tcp jar file
  • Place it into your .minecraft/mods/ directory
  1. Start the Game
  • Launch the Minecraft client as usual

Usage

  1. Go to the Multiplayer screen and click the “Enable WebSocket Proxy” button
  2. Enter the WebSocket server address (e.g., example.com:8080) and click “Done”
  3. After the proxy starts, a local server (127.0.0.1:25565) will be automatically added to your server list
  4. You can stop the proxy at any time via the interface

Configuration

  • Config file path: config/ws2tcp-client.properties
  • You can edit it manually or generate it via the GUI

Language Support

  • Supports Simplified Chinese (zh_cn) and English (en_us)
  • Automatically switches based on the game language

FAQ

  • Error when loading on server This mod is client-side only. It will automatically exit if loaded on a server.

Development & Building

  1. Clone this repository
  2. Open with IDEA or VSCode, ensure you have JDK 21
  3. Build with:
   ./gradlew build
  1. The built jar will be in build/libs/

License

This project is licensed under the Apache-2.0 License.


Feel free to submit issues or pull requests if you have questions

常见问题

ws2tcp 支持哪些 Minecraft 版本?

ws2tcp 支持 Minecraft Java 版 1.21.4,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

ws2tcp 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分