Expose your local web server to the internet with a public URL.
Expose your local web server to the internet with a public URL.
tunneltotunnelto lets you expose your locally running web server via a public URL.
Written in Rust. Built completely with async-io on top of tokio.
brew install agrinman/tap/tunneltocargo install tunneltoOr Download a release for your target OS here: tunnelto/releases
tunnelto --port 8000The above command opens a tunnel and forwards traffic to localhost:8000.
…musl_build.sh for a way to do this trivially with Docker!Dockerfile for a simple alpine based image that runs that server binary.# Run the Server: xpects TCP traffic on 8080 and control websockets on 5000
ALLOWED_HOSTS="localhost" cargo run --bin tunnelto_server
# Run a local tunnelto client talking to your local tunnelto_server
CTRL_HOST="localhost" CTRL_PORT=5000 CTRL_TLS_OFF=1 cargo run --bin tunnelto -- -p 8000
# Test it out!
# Remember 8080 is our local tunnelto TCP server
curl -H '<subdomain>.localhost' "http://localhost:8080/some_path?with=somequery"See tunnelto_server/src/config.rs for the environment variables for configuration.
The implementation does not support multiple running servers (i.e. centralized coordination). Therefore, if you deploy multiple instances of the server, it will only work if the client connects to the same instance as the remote TCP stream.
The version hosted by us is a proper distributed system running on the the fabulous fly.io service.
In short, fly.io makes this super easy with their Private Networking feature.
See tunnelto_server/src/network/mod.rs for the implementation details of our gossip mechanism.
got data but no stream to send it to
tunnelto Crash Report
Unresponsive support: repeated cancellation requests ignored for paid subscription
Upgrade to libssl3? - libssl.so.1.1: cannot open shared object file: No such file or directory
Please remove the word "free" from the website, it's misleading.
Error: Please update tunnelto to the latest version to continue with the free trial.
distributionSha256Sum=371cb9fbebbe9880d147f59bab36d61eee122854ef8c9ee1ecf12b82368bcf10
BAD PAID PRODUCT
Login is case sensitive and now I have two subscriptions
Vite dev fails with tunnelto (but vite preview works)