<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/personal-ngrok-alternative-expose-local-ports-to-the-internet-with-automatic-https-an-interactive--1qt4kpzxk" -->

---
title: Personal ngrok alternative. Expose local ports to the...
description: pgrok is a self-hosted alternative to ngrok that exposes local development ports to the internet through SSH tunnels and Caddy. It provides automatic HTTPS...
canonical: https://daily.dev/posts/personal-ngrok-alternative-expose-local-ports-to-the-internet-with-automatic-https-an-interactive--1qt4kpzxk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Personal ngrok alternative. Expose local ports to the internet with automatic HTTPS, an interactive TUI dashboard, and HTTP request inspection -- all through your own VPS. | daily.dev
og:description: pgrok is a self-hosted alternative to ngrok that exposes local development ports to the internet through SSH tunnels and Caddy. It provides automatic HTTPS...
og:url: https://daily.dev/posts/personal-ngrok-alternative-expose-local-ports-to-the-internet-with-automatic-https-an-interactive--1qt4kpzxk
og:image: https://api.daily.dev/og/posts/1qt4kpzxk.png
og:image:alt: Personal ngrok alternative. Expose local ports to the internet with automatic HTTPS, an interactive TUI dashboard, and HTTP request inspection -- all through your own VPS.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Personal ngrok alternative. Expose local ports to the internet with automatic HTTPS, an interactive TUI dashboard, and HTTP request inspection -- all through your own VPS.

**[selfhosted](https://daily.dev/sources/selfhosted)** · [@francocdev](https://daily.dev/francocdev) · 5 upvotes · 0 comments

## Summary

pgrok is a self-hosted alternative to ngrok that exposes local development ports to the internet through SSH tunnels and Caddy. It provides automatic HTTPS with on-demand TLS certificates, an interactive TUI dashboard with HTTP request inspection, and runs on your own VPS. Setup requires a VPS with Docker, a domain name, and SSH keys. The tool uses SSH reverse tunnels for traffic, Caddy for HTTPS handling with Let's Encrypt/ZeroSSL fallback, and includes real-time connection stats, request logging, and color-coded HTTP logs in the dashboard.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/R44VC0RP/pgrok>

## Similar posts on daily.dev

- [Self-hosted HTTP tunnels with SSH and nginx](https://daily.dev/posts/self-hosted-http-tunnels-with-ssh-and-nginx-qeu3pqxry) · Lobsters · 1 upvotes · 0 comments
- [Cloudflare Tunnels with Docker Compose: Free ngrok Alternative](https://daily.dev/posts/cloudflare-tunnels-with-docker-compose-free-ngrok-alternative-chygejkfv) · SitePoint · 1 upvotes · 0 comments
- [The easiest way to expose localhost to the internet](https://daily.dev/posts/the-easiest-way-to-expose-localhost-to-the-internet-mwzovjf1a) · Hacker News · 8 upvotes · 2 comments
- [I reach every service on my home server from anywhere without opening a single port](https://daily.dev/posts/i-reach-every-service-on-my-home-server-from-anywhere-without-opening-a-single-port-qgiwzdz5k) · XDA Developers · 0 upvotes · 0 comments
- [GitHub - m1dnight/ferri: A self-hostable HTTP tunnel. Expose your local dev server to the internet with a single command.](https://daily.dev/posts/github---m1dnight-ferri-a-self-hostable-http-tunnel-expose-your-local-dev-server-to-the-internet-w-iemb1h8yg) · ElixirStatus · 26 upvotes · 1 comments

---

Tags: [#devops](https://daily.dev/tags/devops), [#docker](https://daily.dev/tags/docker), [#networking](https://daily.dev/tags/networking), [#ssh](https://daily.dev/tags/ssh), [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/personal-ngrok-alternative-expose-local-ports-to-the-internet-with-automatic-https-an-interactive--1qt4kpzxk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/personal-ngrok-alternative-expose-local-ports-to-the-internet-with-automatic-https-an-interactive--1qt4kpzxk","headline":"Personal ngrok alternative. Expose local ports to the internet with automatic HTTPS, an interactive TUI dashboard, and HTTP request inspection -- all through your own VPS.","text":"Shared: R44VC0RP/pgrok: Personal ngrok alternative. Expose local ports to the internet with automatic HTTPS via SSH tunnels + Caddy.","url":"https://daily.dev/posts/personal-ngrok-alternative-expose-local-ports-to-the-internet-with-automatic-https-an-interactive--1qt4kpzxk","datePublished":"2026-02-17T12:54:48.388Z","dateModified":"2026-03-15T07:32:33.121Z","author":{"@type":"Person","name":"Franco Carrara","url":"https://daily.dev/francocdev","image":"https://avatars.githubusercontent.com/u/6468230?v=4","description":"Building things. Solving problems. Moving fast.","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":3460}},"image":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/2UxNsDNz0"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/selfhosted","name":"selfhosted"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"selfhosted","item":"https://daily.dev/squads/selfhosted"},{"@type":"ListItem","position":3,"name":"Personal ngrok alternative. Expose local ports to the internet with automatic HTTPS, an interactive TUI dashboard, and HTTP request inspection -- all through your own VPS."}]}
```

