M
MercyNews
Home
Back
Developer Builds Self-Hosted ngrok Alternative in 10 Hours
Technology

Developer Builds Self-Hosted ngrok Alternative in 10 Hours

A developer built a self-hosted ngrok alternative in 10 hours using Go to bypass Russian restrictions and test webhooks from T-Bank and Telegram.

HabrDec 26
5 min read
📋

Quick Summary

  • 1A developer created a self-hosted alternative to ngrok using the Go programming language in just 10 hours.
  • 2The project was initiated due to difficulties testing webhooks from services like T-Bank and Telegram while operating within Russia, where the standard ngrok service is blocked.
  • 3The developer faced constant connectivity issues requiring VPN usage, which in turn made internal resources inaccessible.
  • 4To solve this recurring problem, they decided to build their own tunneling solution.

Contents

The Development ChallengeBuilding the SolutionTechnical ImplementationImpact and Implications

Quick Summary#

A developer created a self-hosted alternative to ngrok using the Go programming language in just 10 hours. The project was initiated due to difficulties testing webhooks from services like T-Bank and Telegram while operating within Russia, where the standard ngrok service is blocked.

The developer faced constant connectivity issues requiring VPN usage, which in turn made internal resources inaccessible. To solve this recurring problem, they decided to build their own tunneling solution. The resulting tool provides a self-hosted method for exposing local services to the internet, bypassing regional restrictions without relying on third-party services.

The Development Challenge#

The primary motivation for building a custom solution stemmed from the inability to use standard ngrok services in Russia. Developers regularly need to test webhooks from external services, which requires exposing local servers to the public internet. When ngrok is blocked, this critical development workflow breaks down completely.

Using a VPN provided a temporary workaround, but introduced its own set of problems. The developer noted that VPN usage made portions of their internal network infrastructure inaccessible. This created a constant trade-off between accessing external services and maintaining connectivity to local resources.

The situation required a repetitive cycle of enabling and disabling VPN connections, significantly slowing down development work. Each time a webhook test was needed, the developer would have to:

  • Activate a VPN connection
  • Test the webhook
  • Disable the VPN to regain internal network access
  • Repeat the process for subsequent tests

This inefficient workflow prompted the decision to create a permanent, self-controlled solution that would eliminate these connectivity barriers entirely.

Building the Solution#

The developer chose Go as the programming language for this project, likely due to its excellent networking capabilities and efficient concurrency model. Building a tunneling service requires handling multiple simultaneous connections, managing TCP/UDP traffic, and maintaining persistent sessions - all areas where Go excels.

The core functionality of the custom tool mirrors what ngrok provides: it creates a secure tunnel from the local machine to a publicly accessible endpoint. This allows external services like T-Bank or Telegram to send webhook data to a developer's local environment during testing.

By hosting the solution themselves, the developer gains complete control over the infrastructure. There are no rate limits, no usage restrictions, and no dependency on third-party services that might be blocked or experience downtime. The self-hosted nature means the tool can be deployed on any accessible server, creating a private tunneling network.

The 10-hour development timeframe indicates the solution was designed with simplicity and practicality in mind. Rather than building an overly complex system, the developer focused on the essential features needed to solve their specific problem: reliable webhook testing without connectivity restrictions.

Technical Implementation#

While the source doesn't provide detailed technical specifications, a self-hosted ngrok alternative would typically include several key components:

  • Tunnel Server: A central server that accepts connections from both the local client and external services
  • Client Application: Software running on the developer's machine that forwards traffic to the tunnel server
  • Connection Management: Logic to handle multiple simultaneous tunnels and route traffic correctly
  • Security Layer: Encryption and authentication to protect the tunnel traffic

The Go implementation likely leverages the language's standard library for net/http and crypto/tls packages to handle the HTTP/S traffic securely. The ability to compile Go binaries for various platforms also makes the solution portable across different operating systems.

This approach contrasts with commercial tunneling services that may have:

  • Geographic restrictions
  • Usage limits or paid tiers
  • Data collection policies
  • Dependency on external infrastructure

By building their own solution, the developer maintains complete data sovereignty and operational control.

Impact and Implications#

This project demonstrates a practical response to regional internet restrictions affecting software development. The ability to test webhooks from major platforms like Telegram and banking services like T-Bank is essential for developers building integrations with these platforms.

The solution addresses several pain points simultaneously:

  • Reliability: No dependency on external services that may be blocked
  • Performance: Direct tunneling without VPN overhead
  • Cost: Free to operate once the initial development is complete
  • Control: Full ownership of data and infrastructure

For developers in regions with similar restrictions, this approach provides a blueprint for creating customized development tools that work within local constraints. The 10-hour development time shows that such solutions don't require massive time investments, making them accessible to individual developers and small teams.

The project also highlights the growing trend of developers building their own tools when commercial solutions fail to meet specific regional or technical requirements. Rather than accepting limitations, developers are increasingly taking matters into their own hands to create solutions that fit their exact needs.

Frequently Asked Questions

The developer needed to test webhooks from T-Bank and Telegram, but ngrok is blocked in Russia. Using VPNs made internal resources inaccessible, so they built a self-hosted solution to bypass these restrictions.

The developer completed the project in 10 hours using the Go programming language.

It provides reliable webhook testing without regional restrictions, maintains access to internal resources, offers full data control, and eliminates dependency on third-party services.

#claude code#antigravity#ngrok#vibecoding#go

Continue scrolling for more

AI Transforms Mathematical Research and Proofs
Technology

AI Transforms Mathematical Research and Proofs

Artificial intelligence is shifting from a promise to a reality in mathematics. Machine learning models are now generating original theorems, forcing a reevaluation of research and teaching methods.

Just now
4 min
171
Read Article
Technology

ASCII Clouds: Visualizing Code as Art

A new project transforms source code into stunning ASCII art clouds, blending programming with visual creativity and earning praise from the tech community.

2h
4 min
12
Read Article
DeepSeek stays mum on next AI model release as technical papers show frontier innovation
Technology

DeepSeek stays mum on next AI model release as technical papers show frontier innovation

Chinese artificial intelligence firm DeepSeek continues to keep the world guessing on when its next major release – the much-anticipated updates to its V3 and R1 models – will be launched, according to analysts, amid its recent publication of technical papers. The papers underscored DeepSeek’s efforts to improve the underlying infrastructure of AI systems in China at a time when geopolitical tensions and domestic production hurdles restricted the country’s access to advanced semiconductors to...

3h
3 min
0
Read Article
Report: Apple to fine-tune Gemini independently, no Google branding on Siri, more
Technology

Report: Apple to fine-tune Gemini independently, no Google branding on Siri, more

The Information has published a report with interesting tidbits about Apple’s partnership with Google, which will have Gemini serve as the foundation for its AI features, including the new Siri. Here are the details. more…

3h
3 min
0
Read Article
Baseus BP1 Pro Earbuds Drop to $19
Technology

Baseus BP1 Pro Earbuds Drop to $19

The Baseus BP1 Pro wireless earbuds are currently available for just $18.99, offering premium features like ANC and Bluetooth 6.0 at a fraction of the cost of major brands.

3h
5 min
5
Read Article
Technology

Meta Pivots to AI, Cuts VR Jobs

Meta has initiated significant layoffs within its Reality Labs division and shuttered multiple VR studios. This strategic move signals a major pivot towards artificial intelligence, redirecting company resources and focus.

3h
4 min
20
Read Article
Why IRC Is Better Than Real Life: A Digital Perspective
Technology

Why IRC Is Better Than Real Life: A Digital Perspective

An in-depth analysis of why Internet Relay Chat provides a more controlled, intentional, and accessible social environment than physical reality, offering users unprecedented control over their digital identity and interactions.

3h
5 min
13
Read Article
Political Theorist Claims He 'Red Pilled' AI Chatbot
Technology

Political Theorist Claims He 'Red Pilled' AI Chatbot

A political theorist has published a transcript he claims demonstrates the ease with which artificial intelligence can be manipulated to reflect specific ideological viewpoints.

4h
3 min
18
Read Article
Technology

The $LANG Programming Language: A Hacker News Tradition

A deep dive into the Hacker News tradition of 'The {name} programming language' posts, exploring how the community tracks and curates these influential technical discussions.

4h
5 min
20
Read Article
Technology

Как создать домашний сервер: Полное руководство

От хранения данных до запуска собственных сервисов: полное руководство по созданию мощного домашнего сервера. Разбираем выбор оборудования, настройку ОС и популярные сценарии использования.

4h
7 min
10
Read Article
🎉

You're all caught up!

Check back later for more stories

Back to Home