PC-to-WWW — Firebase & WebRTC Serverless P2P Tunnel
PC-to-WWW is a reusable, serverless peer-to-peer (P2P) tunneling utility designed to expose websites, files, or API backends running on your local PC directly to any browser on the global internet.
By utilizing Firebase as a signaling directory and WebRTC as the secure transport layer, this utility connects users directly to your local computer with zero VPS costs, zero persistent server scripts on cPanel, and zero middleman bandwidth overhead.
⚡ Key Features
- 🚀 Serverless P2P Connection: Direct browser-to-PC data transfer via WebRTC Data Channels (no data hops through a relay server after connection).
- 🔥 Firebase Presence & Status: Real-time presence directory showing whether your local servers are 🟢 Online or 🔴 Offline.
- 🛡️ Zero Public Inbound Ports: Your local machine remains safely behind firewalls and NAT. Connections are established outbound.
- 📦 Zero Relay Hosting Overhead: Your public domain only hosts lightweight static files (HTML/JS) — no expensive background Node.js or VPS processes.
- 🔒 End-to-End Encryption: Secured by default through DTLS/SRTP WebRTC protocols.
- 📈 Unlimited Free Bandwidth: All massive file transfers or web page assets stream straight from your local PC's internet connection to the browser (saving cPanel/hosting costs).
🏗️ How it Works
👤 Browser User ◄──────────────────────────────► 🖥️ Local PC
(Web Dashboard) [Direct P2P WebRTC Link] (Exposed Service)
│ │
└─────────────► 🔥 Firebase Cloud ◄──────────────┘
[Handshake & Status only]
- Presence Heartbeat: The Local PC Agent posts regular heartbeats to Firebase Firestore every 10 seconds.
- Dashboard Renders Status: When you visit the Web Dashboard (hosted statically on your subdomain), it displays a real-time list of your servers.
- Signaling Exchange: Clicking "Connect" exchanges SDP Offers, SDP Answers, and ICE Candidates instantly via Firestore.
- P2P Pipeline Open: Once negotiated, a secure, direct WebRTC Data Channel opens between the browser and your PC. Firebase disconnects, and the P2P tunnel handles all future traffic directly.

















