Two opt-in end-to-end test paths validate each networking stack independently.
Validates the managed-only real ZeroTier stack by joining a live network and issuing an HTTP request to a peer by its ZeroTier-managed IP.
Prerequisites: A configured network ID and a reachable URL inside that network.
$env:LIBZT_RUN_ZEROTIER_E2E = "1"
$env:LIBZT_ZEROTIER_NWID = "9ad07d01093a69e3"
$env:LIBZT_ZEROTIER_URL = "http://10.121.15.99:5380/"
dotnet test -c Release --filter "FullyQualifiedName~ZeroTier_JoinAndHttpGet_E2E"Validates the legacy managed overlay stack (not the real ZeroTier protocol).
Prerequisites: A working net auth/session.
What it does:
- Creates a new ZeroTier network via
net - Starts two managed overlay nodes (
NodewithOsUdptransport) - Authorizes both node IDs as network members via
net - Runs a ping/pong over
ZtUdpClient - Runs a ping/pong over
OverlayTcpClient/OverlayTcpListener - Deletes the network
Run the test:
$env:LIBZT_RUN_E2E = "true"
dotnet test -c Release --filter "FullyQualifiedName~net_NetworkCreate_SpawnTwoClients_And_Communicate_E2E"Run the sample:
dotnet run -c Release --project samples/ZTSharp.Samples.NetE2E/ZTSharp.Samples.NetE2E.csproj