-
-
Notifications
You must be signed in to change notification settings - Fork 85
06. Sharing
This page of the documentation serves to illustrate the in-between case of exposing a local instance without having to pay for a domain and set up a complicated reverse proxy.
Ngrok is the recommended method for sharing a local instance over the internet. Throughput is faster than the alternatives, but there are limits on their free tier.
To get started:
- Sign up and install ngrok using instructions from their website
- The ngrok for Windows install uses chocolatey, a package manager that isn't installed on Windows by default. Instead, use the winget package manager to install ngrok instead by running
winget install --id=Ngrok.Ngrok -e
- The ngrok for Windows install uses chocolatey, a package manager that isn't installed on Windows by default. Instead, use the winget package manager to install ngrok instead by running
- Start your TabbyAPI instance
- In a separate terminal, open an ngrok instance using the command
ngrok http 5000
(or the port that TabbyAPI is running on) - Copy the public URL that shows up and send that to your users.
Cloudflared is a free local tunneling service provided by Cloudflare. Free URLs do not have restrictions, but clients will have slower throughput.
To get started:
- Download the cloudflared binary from their releases
- Open a terminal to where you downloaded cloudflared.
- Start your TabbyAPI instance
- Run
./cloudflared tunnel --url 127.0.0.1:5000
to start a quick tunnel on that port - Copy the provided HTTPS url and send that to your users.
Tailscale is a product that uses the WireGuard protocol to provide a mesh network VPN for connecting your devices anywhere you go. Think of it as a private LAN that's accessible from anywhere.
Note
This is not a method for exposing your TabbyAPI instance to the world. If you want that, use the other two services.
To get started:
- Set your TabbyAPI ip to
0.0.0.0
otherwise you will not be able to access your instance outside your local machine. - Sign up and get started on Tailscale's website, then install the client.
- Connect to your tailscale account on both your host and client machine.
- Select the Tailscale icon (usually in the system tray) and get the IP of your host device. This is usually identified by the hostname.
- You can now access your TabbyAPI instance via
<tailscale IP>:5000
instead of localhost as long as your are connected to your tailnet.