Examples
Copy-paste recipes. Adjust domains, tokens, and ports.
Client
Local dev against a local server
bash
inlets client --server http://127.0.0.1:8080 -t dev-token http 127.0.0.1:9000v2 server URL with path prefix
If the monitor lives under a subpath:
bash
inlets client --server https://tunnel.example.com/base -t token http 127.0.0.1:9000HTTP with fixed subdomain
bash
inlets client --sub-domain myapp -t token http 127.0.0.1:9000TCP: production SSH
bash
inlets client --credentials prod:secret tcp -p 20100 127.0.0.1:22Legacy protocol (v1)
bash
inlets client --legacy --remote tunnel.example.com:443 --remote-tcp-port 8443 http 127.0.0.1:9000Do not combine --legacy with --server.
Server
Basic
bash
inlets server -d tunnel.example.com -t your-secret-tokenConfig file
bash
inlets server -c /etc/inlets/config.yamlCustom ports
bash
inlets server -d tunnel.example.com -t token -p 9000 --tcp-port 9443Disable HTTPS for generated URLs (when appropriate)
bash
inlets server -d tunnel.example.com -t your-token --secure=falseForward helper
Local TCP forward (not the tunnel itself):
bash
inlets forward -s 0.0.0.0:8080 -t 127.0.0.1:3000Environment variables
Client and server flags can be set with the INLETS_ prefix. See the CLI reference and repository README.md for the full list.