Share your localhost with the world - securely and instantly!
# Using npm
npm install -g @localhost-tunnel/cli
# Create a tunnel
lt --port 3000
# With custom subdomain
lt --port 3000 --subdomain myapp
docker pull mwmsoftware/localhost-tunnel:latest
docker run -d \
-p 3000:3000 \
-p 7000:7000 \
-v tunnel_data:/app/data \
mwmsoftware/localhost-tunnel:latest
Or using Docker Compose:
cd docker
docker-compose up -d
# Basic tunnel
lt --port 3000
# Custom subdomain
lt --port 3000 --subdomain my-app
# Password protected
lt --port 3000 --password secret
# TCP tunnel
lt --port 22 --tcp
# Custom server
lt --port 3000 --server https://your-server.com
# Show help
lt --help
# Show active tunnels
lt status
# Configure defaults
lt config --server https://your-server.com
lt config --port 8080
Access the web dashboard at http://localhost:3000 after starting the server.









| Mobile | Tablet | Desktop |
|---|---|---|
![]() | ![]() | ![]() |
curl -X POST http://localhost:3000/api/tunnels \
-H "Content-Type: application/json" \
-d '{
"localPort": 3000,
"subdomain": "my-app"
}'
curl http://localhost:3000/api/tunnels
curl -X DELETE http://localhost:3000/api/tunnels/{id}
curl http://localhost:3000/api/health
# Clone the repository
git clone https://github.com/mahmoodhamdi/Localhost-Tunnel.git
cd Localhost-Tunnel
# Install dependencies
npm install
# Generate Prisma client
npm run db:generate
# Push database schema
npm run db:push
# Start development server
npm run dev
# Run unit tests
npm run test:unit
# Run integration tests
npm run test:integration
# Run E2E tests
npm run test:e2e
# Run all tests with coverage
npm run test:coverage
# Build all packages
npm run build
# Build Docker image
docker build -f docker/Dockerfile -t localhost-tunnel .
localhost-tunnel/
├── apps/
│ ├── server/ # Next.js web server
│ │ ├── src/
│ │ │ ├── app/ # Next.js app router
│ │ │ ├── components/
│ │ │ ├── lib/
│ │ │ └── i18n/
│ │ ├── prisma/
│ │ └── messages/ # i18n translations
│ └── cli/ # CLI client
│ ├── src/
│ └── bin/
├── packages/
│ └── shared/ # Shared types and utils
├── docker/
├── .github/workflows/
└── screenshots/
# Database
DATABASE_URL="file:./dev.db"
# Tunnel Server
TUNNEL_DOMAIN="localhost:3000"
TUNNEL_PORT=7000
For support, questions, or business inquiries:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
Made with love by MWM Software Solutions
Content type
Image
Digest
sha256:1d196f000…
Size
87.8 MB
Last updated
9 months ago
docker pull mwmsoftware/localhost-tunnel