Encrypted peer-to-peer sockets over ZeroTier, embedded in your app
open sourceApache-2.0free
ZeroTier Sockets (libzt) is the socket library of the ZeroTier SDK. It embeds a ZeroTier node inside an application, so the app can join a ZeroTier network and open encrypted peer-to-peer TCP and UDP connections through a BSD-style socket API, without a VPN client or a virtual network adapter installed on the device. It's written in C and C++, with bindings for Python, C#, Rust and Java, and builds for Linux, macOS, Windows, iOS and Android. An optional part of the API talks to ZeroTier Central, and networks can also use self-hosted controllers.
Problems it solves
- embed a peer-to-peer virtual network directly in my app without installing a VPN client
- let two copies of my app connect to each other directly across NATs
- encrypted sockets between my devices without opening ports or running a VPN
Features
- embeds a ZeroTier node in your app, with no VPN client or virtual adapter
- BSD-style socket API for TCP and UDP
- end-to-end encrypted peer-to-peer connections
- bindings for C/C++, Python, C#, Rust and Java
- optional ZeroTier Central API, or self-hosted controllers
Alternatives
The same job
These do what ZeroTier Sockets does.
- iroh Rust library for dialing devices by public key over QUIC, with hole-punching and relay fallback