Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tunnelto

> 编程语言
Open source

Expose your local web server to the internet with a public URL.

7.0K stars0 likes4 views
WebsiteGitHub

About

Expose your local web server to the internet with a public URL.

tunnelto

tunnelto lets you expose your locally running web server via a public URL. Written in Rust. Built completely with async-io on top of tokio.

  1. Install
  2. Usage Instructions
  3. Host it yourself

Install

Brew (macOS)

bash
brew install agrinman/tap/tunnelto

Cargo

bash
cargo install tunnelto

Everywhere

Or Download a release for your target OS here: tunnelto/releases

Usage

Quick Start

bash
tunnelto --port 8000

The above command opens a tunnel and forwards traffic to localhost:8000.

More Options:

…

Host it yourself

  1. Compile the server for the musl target. See the musl_build.sh for a way to do this trivially with Docker!
  2. See Dockerfile for a simple alpine based image that runs that server binary.
  3. Deploy the image where ever you want.

Testing Locally

bash
# 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.

Caveats for hosting it yourself

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.

Issues· 51 open

View all issuesOpen on GitHub
  • #74

    got data but no stream to send it to

    Updated Jun 17, 2026
  • #96

    tunnelto Crash Report

    Updated May 14, 2026
  • #95

    Unresponsive support: repeated cancellation requests ignored for paid subscription

    Updated Apr 1, 2026
  • #80

    Upgrade to libssl3? - libssl.so.1.1: cannot open shared object file: No such file or directory

    Updated Feb 28, 2026
  • #61

    Please remove the word "free" from the website, it's misleading.

    Updated Jan 31, 2026
  • #92

    Error: Please update tunnelto to the latest version to continue with the free trial.

    Updated Jan 19, 2026
  • #94

    distributionSha256Sum=371cb9fbebbe9880d147f59bab36d61eee122854ef8c9ee1ecf12b82368bcf10

    Updated Jan 7, 2026
  • #91

    BAD PAID PRODUCT

    Updated Dec 28, 2025
  • #87

    Login is case sensitive and now I have two subscriptions

    Updated Dec 27, 2025
  • #85

    Vite dev fails with tunnelto (but vite preview works)

    Updated Dec 26, 2025

> Tags

Rustasync-ioexposelocalhostrust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 22, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言