Localtunnel
Localtunnel exposes your localhost endpoint to the world, user cases are:
- API testing
- multiple devices access to single data store
- peer to peer connection, workaround for NAT hole punching.
Usage
Use in CLI:
cargo install localtunnel-cli
localtunnel-cli client --host https://localtunnel.me --subdomain kaichao --port 3000
Use as a Rust library:
cargo add localtunnel
use ;
let = channel;
let result = open_tunnel
.await
.unwrap;
// Shutdown the background tasks by sending a signal.
let _ = notify_shutdown.send;