# ZeroTier Sockets

> Encrypted peer-to-peer sockets over ZeroTier, embedded in your app

Source: https://talira.ai/catalog/zerotier-sockets-7q1b85t6
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [networking / peer to peer](https://talira.ai/categories/networking/peer-to-peer), [networking / vpn](https://talira.ai/categories/networking/vpn)
- Platforms: linux, macos, windows, ios, ipados, android[^1]
- Licence: Apache-2.0[^2]
- Pricing: Free[^1][^2]
- Pricing notes: Free under the Business Source License 1.1 for internal business, academic and non-commercial use. Building closed-source commercial apps or devices with it, or selling ZeroTier controllers as a service, needs a commercial licence from ZeroTier (contact sales).
- Free tier: yes[^1][^2]
- Backed by: [ZeroTier](https://talira.ai/orgs/zerotier.md)

ZeroTier Sockets (libzt) is the socket library of the ZeroTier SDK. It embeds a [ZeroTier](https://talira.ai/catalog/zerotier-nhv6h8c6.md) 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.

## Links

- Website: https://docs.zerotier.com/sockets/
- GitHub: https://github.com/zerotier/libzt
- Docs: https://docs.zerotier.com/sockets/

## 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

## Trust

Overall: 0.24 out of 1.
Signals: maintenance 0.06, adoption 0.49, momentum 0.15, community 0.63, backing 0.30, extensibility 0.00.

- 280 GitHub stars
- 36 contributors
- backed by ZeroTier

Warnings:

- last commit 2.1 years ago

## Related

- Works with [ZeroTier](https://talira.ai/catalog/zerotier-nhv6h8c6.md)

## Alternatives

- [iroh](https://talira.ai/catalog/iroh-6bdvk9ww.md): Rust library for dialing devices by public key over QUIC, with hole-punching and relay fallback

## Sources

[^1]: https://github.com/zerotier/libzt (checked 24 Nov 2026)
[^2]: https://github.com/zerotier/libzt/blob/main/LICENSE.txt (checked 24 Nov 2026)
