Skip to content

portr

Self-hosted tunnel for small dev teams to expose local services, with request inspector

Copyleft (OSI) · AGPL-3.0

Listed by , founder & editor

69

Health

Active

Overview

Stars

3,195

Last commit

22 days ago

Nov 2026

Repository age

3 years

since Nov 2023

Latest version

v2.1.0

Nov 2026

Contributors

–

2 active in 90 days

Releases

20

last 12 months

Docker pulls

6.4k

amalshaji/portr

Language

Go

Portr exposes local HTTP, TCP and WebSocket services on public URLs. You run the server yourself, and the client connects over either SSH or WebSocket, depending on the generated client config. The server is written in Go, and it has a Docker deployment and a one-click Railway setup.

Running portr http 9000 gives you a public HTTPS URL for your local service and starts an inspector at localhost:7777. The inspector shows requests and responses, lets you edit and replay them, and shows WebSocket frames. Logs are stored locally in SQLite and can be queried with portr logs, including JSON output. You can also tunnel Docker Compose services with a label.

An admin dashboard manages teams, users and connections. Portr is licensed under AGPL-3.0. It is a self-hosted alternative to Ngrok for development use. It is not recommended for production traffic, and it has no built-in OAuth or JWT authentication, rate limiting or load balancing.

Who it's for

Small dev teams sharing local servers

The admin dashboard handles users and teams, and each member gets their own tunnels and subdomains.

Skip if: You need to serve production traffic.

Developers testing webhooks

The local inspector lets you view, edit and replay incoming requests.

Skip if: You would rather not run your own server.

Teams that use Docker Compose

A portr.enable label tunnels a service without extra commands.

Skip if: You need OAuth, JWT auth or rate limiting at the tunnel.

The problem it solves

Showing a local app to a client or receiving webhooks needs a public URL. Hosted tunnel services charge per seat and keep your traffic on their servers. Portr lets a team run that service on its own server.

Strengths

  • Supports HTTP, TCP and WebSocket tunnels
  • Local inspector with request replay and WebSocket frame view
  • portr logs queries stored requests from the CLI, with JSON output
  • SSH or WebSocket transport, chosen by the client config
  • Active releases, 20 in the last year

Trade-offs

  • Not recommended for production traffic
  • No built-in OAuth or JWT auth or rate limiting
  • No load balancing
  • AGPL-3.0 license carries obligations if you modify and offer it as a service

portr replaces

Self-host portr

Self-hostable
Yes
Docker image
amalshaji/portr
Docker Compose
The repository ships a Compose file

Quick start

portr http 9000

From the project's own install instructions. Check the docs for production settings.

In the community

Frequently asked questions

Is Portr free?

Yes. It is open source under AGPL-3.0.

Can I self-host it?

Yes. You run the server yourself, with Docker or a one-click Railway deploy.

How do I expose a local service?

Run portr http followed by the port, for example portr http 9000. Add -s to choose a subdomain.

Can I use it in production?

It is not recommended. It is designed for exposing development servers.

Other Ngrok alternatives

Compare all 3 Ngrok alternatives →

Similar tools in Tunnels, VPNs and networking

I2P

Tunnels, VPNs and networking

Java router for an encrypted anonymous network layer, for people avoiding surveillance

2.8k 367 yesterday Active Apache-2.0

Pi-hole

Tunnels, VPNs and networking

Network-wide ad blocker running as a DNS sinkhole on your own Linux hardware

62k 3.4k 12 days ago Thriving EUPL-1.2

tsdproxy

Tunnels, VPNs and networking

Reverse proxy that puts Docker containers on your Tailscale network with one label

1.7k 85 2 months ago Active MIT

blocky

Tunnels, VPNs and networking

DNS proxy and ad blocker for home networks, with per-client rules and DoH support

7.1k 325 today Thriving Apache-2.0

pgrok

Tunnels, VPNs and networking

Self-hosted SSH-based tunnel service with SSO and stable subdomains for teams

3.7k 134 yesterday Active MIT

rathole

Tunnels, VPNs and networking

Rust reverse proxy that exposes services behind NAT through a server with a public IP

14k 852 3 months ago Dormant Apache-2.0