NPortFree Cloudflare-based localhost tunnel CLI with custom subdomains
RatholeRust reverse proxy for NAT traversal
NPort vs Rathole
How NPort and Rathole compare on popularity, activity, license and platforms: two open-source Networking & Connectivity projects, both alternatives to ngrok.
At a glance
- Rathole has more GitHub stars (14.5k vs 776, about 19× as many).
- Rathole was updated more recently (last commit 3 months ago, NPort 3 months ago).
- NPort uses MIT; Rathole uses Apache-2.0 (both permissive).
- Rathole can be self-hosted; NPort is not listed as self-hostable.
- Rathole is the older project (repository started 2021; NPort in 2024).
Side by side
| NPort | Rathole | |
|---|---|---|
| GitHub stars | ★ 776 | ★ 14,513 |
| Forks | 136 | 857 |
| Last commit | 3 months ago | 3 months ago |
| Latest version | v2.1.6 | v0.5.0 |
| Repository started | December 2024 | December 2021 |
| License | MIT · permissive | Apache-2.0 · permissive |
| Self-hosted | Desktop/CLI app | Yes |
| Platforms | CLI, Linux, macOS, Windows | Linux, Docker |
| Main language | TypeScript | Rust |
| Alternative to | ngrok | ngrok |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 27 November 2026.
NPort
NPort exposes local HTTP or HTTPS ports through Cloudflare with one npm command, automatic TLS and optional custom subdomains.
Key features
- One-command localhost exposure via npm
- Custom subdomains on the shared nport.link domain
- Automatic HTTPS through Cloudflare
- WebSocket and SSE support
- Optional self-hosted backend configuration
- Automatic tunnel and DNS cleanup on exit
Rathole
Rathole exposes services on NAT-bound devices through a public server, using paired client and server configuration files.
Key features
- Client-server NAT traversal
- Mandatory per-service tokens
- Noise Protocol and TLS options
- Hot-reload configuration
- Small static binaries
- Docker image available