Loading...
Loading...
An internal network tunneling system similar to ngrok or frp for exposing local services to the internet. Supports NAT traversal and port forwarding.
npx skill4agent add feng3d-labs/chuantou chuantounpx @feng3d/chuantou-server -p 9000 -t "my-token"npx @feng3d/chuantou-client -s ws://server:9000 -t "my-token" -p "8080:http:3000:localhost"npx @feng3d/chuantou-server [options]-p, --port <port>-a, --host <address>-t, --tokens <tokens>--tls-key <path>--tls-cert <path>npx @feng3d/chuantou-client [options]-s, --server <URL>ws://li.feng3d.com:9000-t, --token <token>-p, --proxies <config>remote-port:protocol:local-port:local-addressremote-port:protocol:local-port:local-addressremote-portprotocolhttpwslocal-portlocal-addressnpx @feng3d/chuantou-server --tls-key /path/to/key.pem --tls-cert /path/to/cert.pemwss://npx @feng3d/chuantou-client -s wss://server:9000 ...~/.chuantou/server.jsonclient.jsonnpx @feng3d/chuantou-server -c ~/.chuantou/server.json# Server (machine with public IP)
npx @feng3d/chuantou-server -p 9000 -t "dev-token"
# Client (local development machine)
npx @feng3d/chuantou-client -s ws://server-ip:9000 -t "dev-token" -p "8080:http:5173:localhost"http://server-ip:8080npx @feng3d/chuantou-client -s ws://server-ip:9000 -t "my-token" -p "8080:http:3000:localhost"http://server-ip:8080npx @feng3d/chuantou-client \
-s ws://server-ip:9000 \
-t "my-token" \
-p "8080:http:3000:localhost,8081:ws:3001:localhost,8082:http:8000:localhost"| Remote Port | Protocol | Local Port | Purpose |
|---|---|---|---|
| 8080 | http | 3000 | Web Service |
| 8081 | ws | 3001 | WebSocket Service |
| 8082 | http | 8000 | API Service |
# Server (requires domain name and certificate)
npx @feng3d/chuantou-server \
--tls-key /etc/ssl/private/key.pem \
--tls-cert /etc/ssl/certs/cert.pem \
-t "prod-token"
# Client
npx @feng3d/chuantou-client \
-s wss://your-domain.com:9000 \
-t "prod-token" \
-p "8443:http:3000:localhost"npx @feng3d/chuantou-server -p 9000 -t "my-secret-token"
# The output will display the generated token (if not specified)npx @feng3d/chuantou-client \
-s ws://server-ip:9000 \
-t "my-secret-token" \
-p "8080:http:3000:localhost"http://server-ip:8080| Issue | Solution |
|---|---|
| Connection failed | Check if the server is running, if the token is correct, if the address is correct, and if the firewall has opened the port |
| Port occupied | Use the |
| TLS error | After enabling TLS on the server, the client must use the |
| Tunnel disconnected | The client will automatically reconnect; check network stability |
| Cannot access local service | Confirm that the local service is running, and the port and address configurations are correct |