πŸš€ Portr Tunnel - Zero to Hero 🌐

Ibrar AnsariIbrar Ansari
3 min read

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! πŸ’¬

0
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!