ZTSharp 0.0.26
dotnet add package ZTSharp --version 0.0.26
NuGet\Install-Package ZTSharp -Version 0.0.26
<PackageReference Include="ZTSharp" Version="0.0.26" />
<PackageVersion Include="ZTSharp" Version="0.0.26" />
<PackageReference Include="ZTSharp" />
paket add ZTSharp --version 0.0.26
#r "nuget: ZTSharp, 0.0.26"
#:package ZTSharp@0.0.26
#addin nuget:?package=ZTSharp&version=0.0.26
#tool nuget:?package=ZTSharp&version=0.0.26
ZTSharp
Warning This project is experimental. It has not been audited for security, optimized for performance, or hardened for stability. Do not use it in production environments where any of these properties are critical.
A fully managed .NET library for ZeroTier networking -- no native binaries, no OS client required.
What is this?
This library provides two independent networking stacks:
Real ZeroTier Stack (ZTSharp.ZeroTier)
Join existing controller-based ZeroTier networks using normal NWIDs.
User-space TCP/UDP sockets, HttpClient integration, IPv4/IPv6 -- all in pure managed code.
Legacy Overlay Stack (ZTSharp)
A custom managed overlay transport for experimentation and testing.
Not protocol-compatible with the real ZeroTier network.
Quick Start
Join a real ZeroTier network and make an HTTP request:
using ZTSharp.ZeroTier;
await using var zt = await ZeroTierSocket.CreateAsync(new ZeroTierSocketOptions
{
StateRootPath = "path/to/state",
NetworkId = 0x9ad07d01093a69e3UL
});
using var http = zt.CreateHttpClient();
var body = await http.GetStringAsync("http://10.121.15.99:5380/");
Build and Test
dotnet build -c Release
dotnet test -c Release
Documentation
| Document | Description |
|---|---|
| Usage Guide | API reference with code examples for both stacks |
| ZeroTier Stack | Real ZeroTier stack -- status, capabilities, and limitations |
| ZeroTier Sockets | Managed socket API surface and differences vs OS sockets |
| Persistence | State store keys, planet/roots compatibility |
| E2E Testing | End-to-end validation instructions |
| Tunnel Demo | Local tunnel demo (reverse proxy over overlay transport) |
| Benchmarks | Running BenchmarkDotNet benchmarks |
| AOT / Trimming | Native AOT and trimming notes |
| Compatibility | Known gaps vs upstream libzt |
| Third-Party Notices | Dependency and license pointers |
License
See THIRD_PARTY_NOTICES.md for bundled source licenses and NuGet dependency information.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BouncyCastle.Cryptography (>= 2.6.2)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.5)
- System.Memory.Data (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.