A simple HTTP tunneling tool that exposes your local development server to the internet through custom subdomains.
Wormhole creates a secure tunnel between your local development server and the internet, allowing you to:
- Share your local web application with others instantly
- Test webhooks and APIs that require public URLs
- Demo your work-in-progress applications
- Access your local development environment from anywhere
go run cmd/server/main.gogo run cmd/client/main.go -domain=myapp -local=http://localhost:3000Your local server is now available at: http://myapp.localhost:8080
git clone <repository-url>
cd wormhole
go mod downloadgo run cmd/server/main.go -port=8080Required flags:
-port: Port to run the server on (default: 8080)
Optional flags:
-debug: Enable debug mode
go run cmd/client/main.go -server=http://localhost:8080 -domain=mysubdomain -local=http://localhost:3000Required flags:
-domain: Your unique subdomain name-local: URL of your local development server
Optional flags:
-server: Server URL (default: https://wormhole.tools)
✅ Custom Subdomains - Choose your own subdomain name
✅ Real-time Tunneling - Instant request forwarding via WebSockets
✅ Header Preservation - Complete HTTP headers are maintained
✅ Multiple Clients - Support for multiple simultaneous tunnels
✅ Automatic Cleanup - Domains are released when clients disconnect
- Frontend Development: Share your React/Vue/Angular app with team members
- API Testing: Test webhook endpoints from external services
- Mobile Development: Test your local API with mobile apps
- Client Demos: Show work-in-progress to clients without deployment
- The server listens for client connections and HTTP requests
- Clients connect via WebSocket and claim a subdomain
- HTTP requests to
subdomain.server:portare forwarded to the client - The client forwards requests to your local server and returns responses
- Go 1.22.3 or later
- Available port for the server (default: 8080)
- Local development server to tunnel
Released under the MIT License.
Feel free to open issues and submit pull requests to improve Wormhole!