Configuration
All available options for the Trapdoor client.
Usage
bash
trapdoor <port> [name]| Argument | Description | Required |
|---|---|---|
port | Local port to expose | Yes |
name | Custom subdomain name | No (random if not specified) |
Examples
Basic Usage
bash
# Expose port 3000 with random subdomain
trapdoor 3000Custom Subdomain
bash
# Get https://myapp.trapdoor.sh
trapdoor 3000 myappMultiple Tunnels
bash
# Terminal 1
trapdoor 3000 frontend
# Terminal 2
trapdoor 5000 apiAuto Reconnect
Trapdoor automatically reconnects if the connection drops. The reconnect strategy:
- Instant first retry
- Exponential backoff: 0.5s, 1s, 2s, 4s...
- Max 30 seconds between retries
- Up to 10 retry attempts
This ensures your tunnel stays alive even with network issues.