百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

ConnectX

> 数据库
开源

这是一个跨平台的 Minecraft P2P 网络多玩家库,使用高性能套接字实现出色的转发性能,具有 P2P 功能。

99 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

这是一个跨平台的 Minecraft P2P 网络多玩家库,使用高性能套接字实现出色的转发性能,具有 P2P 功能。

ConnectX

中文 README

A cross-platform Minecraft P2P online multi-player library in C#, developed using high-performance sockets for excellent forwarding performance, with P2P powered by the Zerotier SDK.

Proudly powered by another of our open-source projects: Hive.Framework

Architecture

Status

Function Status
Server: Log Room Ops Info to local DB :white_check_mark:
Server: Client/Room management :white_check_mark:
Server: Relay Server management :white_check_mark:
Relay: Relay Server impl based on Hive :white_check_mark:
Relay: Ultra low latency relay impl :white_check_mark:
Client: ZT based P2P connection :white_check_mark:
Client: ConnectX based Relay connection :white_check_mark:
Dual Stack Socket Support :white_check_mark:

Client projects

  • ConnectX.Client.Relay is the standalone server-relay client and has no ZeroTier dependency.
  • ConnectX.Client.ZeroTier is the optional direct/P2P implementation. It references the relay client for shared client behavior and is the only client project that references ZeroTier.Sockets.

Quick Start!

We are using the MSDI(Microsoft.Extensions.DependencyInjection) as our DI container. The best practice is to use .NET Generic Host for you program.

First, add the following method for the Server Config. ConnectXServerIp will be the Backend address for the ConnectX.Server.

…

Then, just add one more line to complete the setup!

diff
private static void ConfigureServices(IServiceCollection services)
{
    // ...
+   services.UseConnectXRelay(_ => GetConnectXSettings());
    // ...
}

Applications that intentionally support direct connections should reference ConnectX.Client.ZeroTier and call UseConnectXZeroTier instead.

How to use?

Inject IServerLinkHolder and Client into the VM where you want to manage the room instances.

Connect to the server

csharp
await _serverLinkHolder.ConnectAsync(CancellationToken.None);

Perform room actions

[!IMPORTANT]
Please make sure that before you perform any room operations, you need to make sure you already connected to the ConnectX server!

csharp
await TaskHelper.WaitUntilAsync(() => _serverLinkHolder is { IsConnected: true, IsSignedIn: true });
…

License

MIT. This means that you can modify or use our code for any purpose, however, copyright notice and permission notice shall be included in all copies or substantial portions of your software.

Stats

Disclaimer

ConnectX is not affiliated with Mojang or any part of its software.

License Notice

This project, ConnectX, is licensed under the MIT License.

ConnectX uses ZeroTier, which is licensed under the Apache License 2.0 as of 2025-01-01, following its license change from BSL 1.1. You can find more about ZeroTier's licensing at https://github.com/zerotier/ZeroTierOne.

See Also

Hall of Shame

Here, we'll list all programs using our code without obeying the MIT License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#cross-platformcsharphigh-performanceminecraft

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库