zrok: what it does and how to run it
put a service behind NAT on the internet without opening a port
Independent review. Some links are affiliate links; they never affect the verdict or the ranking. Full disclosure.
zrok creates outbound tunnels: run one command next to a local service and it becomes reachable at a public URL, with no port forwarding, no static address and no firewall change. That is the fastest way to show a client a site in progress or reach a home server from a hotel. Self-hosting the control plane is what distinguishes it from commercial tunnels — the URL and the trust boundary are yours.
Do not treat a public share as production hosting; put authentication on anything that is not deliberately public.
What zrok actually does
This entry collects the essentials: what the project does, what licence it ships under, and where it fits next to the alternatives. Check the official site for the current feature list.
Core features
- Share a local port over a public URL with one command
- No inbound firewall rule and no static IP needed
- Access control for private shares
- Self-hostable control plane
Where it is strongest
- no router configuration
- works from anywhere
Who it is for
developers demonstrating a local app or reaching a home server safely
It is an open-source tunnel with a self-hostable control plane, so you are not dependent on a vendor's shared domain and terms for access to your own machine
How zrok compares
These are the entries closest to zrok on this site — same category, overlapping job. Licence and hosting model are the two columns worth reading first, because they decide your total cost more than the feature list does.
| Tool | Licence | Cost | Best for |
|---|---|---|---|
| zrok This page | Apache-2.0 | Free to self-host | put a service behind NAT on the internet without opening a port |
| Home Assistant | Apache-2.0 | Free to self-host | Open-source home automation hub |
| Mealie | AGPL-3.0 | Free to self-host | Recipe and meal planning for your kitchen |
| 3X-UI | GPL-3.0 | Free to self-host | Powerful Xray panel with a friendly web UI |
How to get zrok running
- Pick the hostA 2 GB VPS covers most of these apps for a small team. If you would rather not run an operating system, a managed app host gives you a one-click container with backups and TLS included.
- Provision the runtimezrok ships as a container image or a documented install script. Pin a
release tag rather than tracking
latest, so an upstream change never surprises you on a Friday. - Attach persistent storagePoint the data volume at a path you back up. Most of these apps keep everything — users, settings, history — in one database plus an uploads folder.
- Put it behind a domain with TLSAdd an A record, then terminate TLS at your proxy or at the host. Set the public URL in the app's environment before first login, because several apps bake it into links.
- Secure the admin accountChange the default credentials, enable 2FA where offered, and close registration unless the app is meant to be public.
- Schedule the first backupA nightly snapshot that you have actually restored once is worth more than any feature on this page.
Licence and cost
Apache-2.0. Permissive like MIT, with an explicit patent grant that matters if you are building a commercial product.
Self-hosting removes the subscription but not the work: patching, backups, monitoring and the odd 2am alert. Budget a few hours a month for a small deployment.
Questions people ask
Is zrok free to use?
Yes. zrok is released under Apache-2.0, so you can install and run it without a subscription. Permissive like MIT, with an explicit patent grant that matters if you are building a commercial product. Hosting and maintenance still cost money — a small VPS or a managed app host is the usual answer.
Can I self-host zrok?
Yes — that is the point of this listing. You need a server with a supported runtime, persistent storage and a backup schedule. A managed app host removes most of the setup work if you would rather not maintain the operating system yourself.
What is a good alternative to zrok?
Home Assistant is the closest option in the same category on this site — Open-source home automation hub. It is worth comparing licence terms before you pick.
Who is zrok aimed at?
developers demonstrating a local app or reaching a home server safely zrok uses the Apache-2.0 licence. Start with a single team and a single workflow rather than rolling it out to the whole company at once.