π Portr Tunnel - Zero to Hero π


Expose your local development server to the world, securely and effortlessly!
If you're a developer working on local HTTP, TCP, or WebSocket services and youβve ever wished you could share your local environment with a teammate, client, or tester without deploying it β Portr is your new best friend. π
Portr is a lightweight, SSH-based tunneling solution that helps you expose your local connections to the public internet. Think of it as a modern, open-source alternative to tools like ngrok β but using your own SSH server!
π§ What is Portr?
Portr is a tunnel solution built with simplicity and flexibility in mind. It's ideal for developers, QA teams, and small teams needing to share local environments β without touching production. It supports:
β
HTTP tunnels
β
TCP tunnels
β
WebSocket tunnels
π GitHub repo: https://github.com/amalshaji/portr
It uses SSH remote port forwarding under the hood, making it secure and self-hostable. No magic β just solid, familiar tools used smartly.
πΉ Learn by Watching: DevOps in Action Series
Whether you're a visual learner or just love a good walkthrough, this 3-part YouTube series breaks down Portr beautifully. Highly recommended!
π₯ Part 1 - Introduction & Overview
π Watch here
π₯ Part 2 - Server Configuration
π Watch here
π₯ Part 3 - Client Setup
π Watch here
These tutorials take you from setting up your Portr server to exposing your first local app β a perfect βzero to heroβ guide. π¦ΈββοΈ
π οΈ Why Use Portr?
Hereβs why Portr might be the right choice for your team:
π Expose localhost to the world β test APIs, demos, or frontend builds with live URLs.
π Secure tunneling with SSH β no need to trust third-party relay services.
π» Open-source & self-hostable β full control, no surprises.
π¦ Lightweight β no bloated installs or heavy dependencies.
Perfect for hackathons, dev showcases, QA testing, or internal demos.
βοΈ Quick Glance at Portr Components
1. Portr Tunnel β Sets up the actual tunnel.
2. Portr Proxy β Handles routing incoming traffic to your local server.
3. Server + Client Configuration β You configure SSH and the Portr binary to define where and how connections flow.
π From Zero to Hero with Portr
Getting started is refreshingly simple:
# On your local machine (client)
portr --server yourdomain.com --port 3000
That's it. Now your localhost:3000 is publicly accessible! π€―
π Final Thoughts
Portr is not meant to replace production-grade tools or APIs β but for dev use-cases, itβs a real gem π. Fast, secure, and yours to control. If you're part of a small team or an indie dev, give it a spin!
π Explore more: https://portr.dev
π§βπ» Star the repo: https://github.com/amalshaji/portr
Have you tried Portr in your dev workflow? Letβs chat in the comments! π¬
Subscribe to my newsletter
Read articles from Ibrar Ansari directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Ibrar Ansari
Ibrar Ansari
Hello! I'm a DevOps Engineer dedicated to continuous learning and contributing to the tech community. If you find value in what I share, feel free to spread the word to others who might benefit as well. Your support is greatly appreciated!