# Connectivitizer

> Connectivitizer lets an application reach a service (HTTP, WebSocket, any TCP protocol) on a device behind NAT without opening a port. Sessions run directly between the two endpoints when the networks allow it, and through a relay otherwise. Both ways are end-to-end encrypted between the two endpoints; the platform never holds the keys.

The web app: https://connectivitizer.com.

Programs use Connectivitizer through an SDK or the command-line tool `cz`. A device offers local services under names, and other devices or applications connect to those services. A device can do both, for example a lamp that can be controlled remotely and can also switch another lamp. With `cz connect`, a service can be accessed through a local port without integrating an SDK. The programs do not need to be written in the same language.

Choose a guide based on your platform and what you want to do.

<!-- cz:aside ai -->
## For AI coding assistants

If you are an AI coding assistant helping someone build a project with Connectivitizer, read this first:

- [Instructions for coding agents](https://connectivitizer.com/guides/agent.md): what to settle with the person you are helping, the rules, and how to check the result.

The guides below are written for that person, the one building the project. Follow them on their behalf.
<!-- cz:end -->

## Integration guides

- [ESP32 (Arduino, PlatformIO, ESP-IDF)](https://connectivitizer.com/guides/esp32.md): offers services, and connects to other devices
- [TypeScript on Node.js](https://connectivitizer.com/guides/typescript.md): offers services and connects
- [React Native](https://connectivitizer.com/guides/react-native.md): connects (phone apps)
- [Plugins in other apps (relay only)](https://connectivitizer.com/guides/browser.md): connects from a web page or WebView, a backup only where nothing else can run: always through the relay, so all its traffic counts as relayed
- [C# / .NET](https://connectivitizer.com/guides/dotnet.md): offers services and connects
- [Python](https://connectivitizer.com/guides/python.md): offers services and connects
- [Java and Kotlin (JVM, Android)](https://connectivitizer.com/guides/jvm.md): offers services and connects
- [cz, the command line tool](https://connectivitizer.com/guides/cz.md): any language, next to unchanged software
- [Workspace tools](https://connectivitizer.com/guides/workspace-tools.md): create keys and configure devices from the command line (`npx @huelake/connectivitizer`) or as tools of an AI client (MCP), without a key ever being shown
- [Device screens](https://connectivitizer.com/guides/device-screen.md): a page the device serves, shown in the Connectivitizer app and by `cz ui`: the code for each language, colours, camera and location, examples
- [The Connectivitizer app](https://connectivitizer.com/guides/mobile-app.md): the app on the phone, and getting the shared key onto it (also as a QR code in the terminal)

## When something does not work

- [Troubleshooting: direct or relayed, and why](https://connectivitizer.com/guides/troubleshooting.md)
- [Error codes](https://connectivitizer.com/guides/errors.md)
