惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
MyScale Blog
MyScale Blog
H
Help Net Security
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Turn any PHP host into a gateway to your local network wi...
ProfiDE · 2026-06-15 · via DEV Community

ProfiDE

Ever wanted to turn a simple PHP host into a gateway for your local network?

I built host2gateway to do exactly that.

GitHub logo ProfiDE / host2gateway

Uses a PHP host or web server to create a gateway that securely allows access to clients through it.

host2gateway

host2gateway is a tool designed to provide access from a web server (Gateway) to a client without requiring static IP addresses, port forwarding, changing firewall rules, or other complex configurations. It is written in PHP and can be deployed on most hosting provider environments.

Features

  • No need for static IP or port forwarding: There is no requirement to modify your firewall or router settings.
  • Platform-independent: Works anywhere PHP 8.2 or higher is supported, making it suitable for most shared hosting services.
  • Lightweight and simple: Minimal dependencies and easy deployment.
  • Strong encryption built-in: Uses a powerful encryption mechanism that secures all communication, even if SSL/TLS is not available on the hosting provider. Your data is protected at all times, regardless of your environment.

How It Works

The client establishes an outbound connection to a Gateway server that is accessible from the internet (a PHP-enabled web host). Both sides communicate…

🔥 What is host2gateway?

It's a lightweight tool that transforms any server running PHP into a gateway that can route traffic, manage requests, and act as a bridge between your local network and external services.

No heavy dependencies. No complex configs. Just PHP, Cron and a network interface.

🧠 Why I built this

Most gateway solutions are bulky, written in Go or Rust, and require root access and system-level changes. But what if you only have:

  • A shared hosting account
  • A basic VPS with PHP enabled
  • A Raspberry Pi running a PHP server

host2gateway fills that gap. It gives you gateway-like capabilities using the tools you already have.

🛡️ Use cases

Use Case Description
Local network bridge Connect isolated parts of your network
Traffic inspection Log and monitor requests passing through
Development tunneling Expose local services through a PHP host
Learning networking Understand how gateways work with readable PHP code

🔗 What you need to know

  • Written in pure PHP
  • Works with PHP 7.4+
  • No database required
  • Compatible with Linux and any system that runs PHP-CLI

🚀 Ready to try it?

I won't bore you with setup steps here — everything is documented in the repository.

👉 GitHub: github.com/ProfiDE/host2gateway

Inside you'll find:

  • Installation instructions
  • Configuration guide
  • How to contribute (good first issues available!)

🤝 Open Source Needs You

host2gateway is still young. If you're into:

  • PHP
  • Networking
  • Cybersecurity
  • Or just love tinkering

...come take a look. Open an issue. Submit a PR. Or just star the repo ⭐

Every contribution helps.