🚀 LabCore Tunnel

Expose your localhost to the world securely and instantly. Supports HTTP web servers, REST APIs, and even raw TCP/UDP for games and databases. You can use the -s flag to request a custom subdomain on any protocol!

1. Global Installation:
npm install -g labcore-tunnel
HTTP Web Servers & APIs (Port 3000)
labtunnel 3000

# With custom subdomain:
labtunnel 3000 -s my-app

# Forward to a specific local IP (e.g. Raspberry Pi on your LAN):
labtunnel 80 --host 192.168.1.50
TCP Games, Databases, SSH (Port 25565)
labtunnel 25565 --tcp

# With custom subdomain:
labtunnel 25565 --tcp -s my-server

# Forward to a specific local IP (e.g. Server on your LAN):
labtunnel 25565 --tcp --host 192.168.1.50
UDP Real-time Games, VoIP (Port 7777)
labtunnel 7777 --udp

# With custom subdomain:
labtunnel 7777 --udp -s my-game

# Forward to a specific local IP (e.g. Console on your LAN):
labtunnel 7777 --udp --host 192.168.1.50
SDK Node.js Programmatic Usage

For CommonJS (require):

const { createTunnel } = require('labcore-tunnel');

For ES Modules (import):

import labcoreTunnel from 'labcore-tunnel';
const { createTunnel } = labcoreTunnel;

Usage:

async function start() {
    const tunnel = await createTunnel({
        port: 3000,
        subdomain: 'my-custom-app', // Optional
        protocol: 'http', // 'http', 'tcp', or 'udp'
        host: 'localhost' // Optional (defaults to localhost)
    });

    console.log('Tunnel URL:', tunnel.url);

    // When you want to stop the tunnel:
    // tunnel.close();
}

start();

🔗 No registration or payment required. Built for developers by LabCore.