ZTSharp 0.0.26

dotnet add package ZTSharp --version 0.0.26
                    
NuGet\Install-Package ZTSharp -Version 0.0.26
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ZTSharp" Version="0.0.26" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZTSharp" Version="0.0.26" />
                    
Directory.Packages.props
<PackageReference Include="ZTSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ZTSharp --version 0.0.26
                    
#r "nuget: ZTSharp, 0.0.26"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ZTSharp@0.0.26
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ZTSharp&version=0.0.26
                    
Install as a Cake Addin
#tool nuget:?package=ZTSharp&version=0.0.26
                    
Install as a Cake Tool

ZTSharp

CI NuGet NuGet Downloads .NET

License: AGPL-3.0 GitHub stars GitHub issues

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.26 45 2/26/2026
0.0.24 37 2/26/2026
0.0.23 41 2/26/2026
0.0.21 36 2/26/2026
0.0.20 36 2/26/2026
0.0.19 44 2/26/2026
0.0.14 45 2/25/2026
0.0.9 44 2/24/2026