# How to access CasaOS remotely

Canonical: https://kextcache.com/how-to-access-casaos-remotely/
Published: 2025-03-05T18:59:20+05:30
Updated: 2026-11-18T11:18:00+05:30
Author: Ayush Sahay Chaudhary

*Updated 18 Nov 2026: Tailscale is now the first method, the Cloudflare Tunnel steps follow Cloudflare's current setup and add Cloudflare Access, the Raspberry Pi notes moved here from our Pi 5 guide, and the port forwarding section explains why the CasaOS dashboard should stay off the open internet.*

To access CasaOS remotely, install Tailscale on the CasaOS server and on your phone or laptop, then open the server's Tailscale address, such as `http://100.x.y.z`, in a browser. You don't open anything on your router. If you need a public web address instead, use a Cloudflare Tunnel with Cloudflare Access in front of it. Don't port-forward the CasaOS dashboard: it serves plain HTTP, and every stable release as of November 2026 has a known flaw that leaks system details without a login.

These steps were written for CasaOS v0.4.15, the version the official installer sets up as of 17 Nov 2026, cloudflared 2026.11.0 and Tailscale 1.104.7.

> **Tested by our setup on 17 Nov 2026**
>
> - What we did: installed CasaOS 0.4.15 in a throwaway VM and checked which ports it listens on, then installed cloudflared 2026.11.0 and Tailscale 1.104.7 next to it
> - On: Debian 12 in a KVM virtual machine (2 vCPU, 3 GB RAM) on an Intel Core i3-7100 home server
> - When: 17 Nov 2026
> - Not tested: the Tailscale connection and reaching CasaOS over it, the Cloudflare Tunnel past the install (login, DNS route, Access), port forwarding, WireGuard, Raspberry Pi and arm64

## Why remote access to CasaOS is important

CasaOS is an open-source personal cloud system for Linux that manages Docker apps from a web dashboard. Out of the box you can only reach that dashboard from your home network. There, open the address the installer prints when it finishes. Our test VM printed `CasaOS v0.4.15 is running at:` followed by `http://10.0.2.15`, the VM's own address; on a real server it is the server's LAN IP address, which `hostname -I` also lists (see [port forwarding](#3_Port_Forwarding_Least_Secure_But_Works)). With remote access, you can:

- Manage your server and its apps from anywhere
- Open your documents in the CasaOS Files app on the go
- Stream media files without copying them to your device first (through a Cloudflare Tunnel, Cloudflare's limits on video apply; see below)

<a class="embed-card" href="/top-docker-apps-home-server/">Top 24 Docker apps for your home server (2026 guide)</a>

## Methods to access CasaOS remotely

| Method | Opens a port on your router | Who can reach the CasaOS login | Encryption | Cost (November 2026) |
|---|---|---|---|---|
| Tailscale | No | Devices in your tailnet | WireGuard | Free Personal plan: up to 6 users, unlimited user devices |
| Cloudflare Tunnel with Access | No (outbound connection only) | People your Access policy allows | HTTPS between the browser and Cloudflare | Free Zero Trust plan up to 50 users; needs a domain on Cloudflare |
| Port forwarding | Yes, the dashboard's port | Anyone on the internet | None (plain HTTP) | Free, if your ISP allows incoming connections |

### Using Tailscale (easiest to set up)

[Tailscale](https://tailscale.com) is a mesh VPN built on WireGuard. It links your devices into a private network, called a tailnet, without opening any ports on your router. The free Personal plan covers up to 6 users and unlimited user devices, as of November 2026.

![Tailscale admin console listing a Raspberry Pi on Tailscale 1.80.2, March 2025](/wp-content/uploads/2025/03/CleanShot-2025-03-05-at-18.49.04.png)

*Our Tailscale admin console in March 2025, with a Raspberry Pi on Tailscale 1.80.2. The current release is 1.104.7 (12 Nov 2026).*

1. Install Tailscale on your CasaOS server:

*Tested by our setup on 17 Nov 2026: Debian 12 in a KVM VM on an Intel Core i3-7100 home server. It installed Tailscale 1.104.7.*

```bash
curl -fsSL https://tailscale.com/install.sh | sh
```

2. Start Tailscale and log in. The command prints a login URL; open it in a browser and sign in:

*From the official docs: [Install Tailscale on Linux](https://tailscale.com/kb/1031/install-linux), last validated 5 Jan 2026. Not tested by us.*

```bash
sudo tailscale up
```

On a server without a browser, such as a headless Raspberry Pi, log in with an auth key instead. Create one on the **Keys** page of the Tailscale admin console and pass it with `--auth-key`. The key signs the device in as you. Tailscale warns that reusable keys "can be very dangerous if stolen", so pick a one-off key with a short expiry.

*From the official docs: [Auth keys](https://tailscale.com/kb/1085/auth-keys), last validated 30 Jun 2026. Not tested by us with a real key.*

```bash
sudo tailscale up --auth-key=<your-auth-key>
```

Older guides spell the flag `--authkey`. In the test for our [Raspberry Pi 5 CasaOS guide](/setup-casaos-raspberry-pi-5/), which ran in a Debian VM, not on a Pi, Tailscale 1.104.7 still accepted that spelling. It rejected only the key, which was a dummy.

3. Install Tailscale on your remote device and log in with the same account.
4. Find the server's Tailscale address. Tailscale gives devices addresses from 100.64.0.0/10, so it starts with 100. Run this on the server, or look under Addresses on the Machines page of the admin console:

*From the official docs: [Tailscale CLI](https://tailscale.com/kb/1080/cli), last validated 30 Jul 2026. Not tested by us.*

```bash
tailscale ip -4
```

5. On your remote device, open `http://100.x.y.z` with the address from step 4. If CasaOS doesn't use port 80, add the port, for example `http://100.x.y.z:8080`. To see the port, run this on the server and look for the `port=` line under `[gateway]`:

*Tested by our setup on 17 Nov 2026: Debian 12 in a KVM VM on an Intel Core i3-7100 home server. A fresh install showed `port=80`.*

```bash
sudo cat /etc/casaos/gateway.ini
```

If port 80 is taken when CasaOS starts for the first time, it takes the first free port from 81 to 89, then 8080 to 8089. To move it yourself, see [how to change the CasaOS port](/change-port-casaos/).

In our VM, the CasaOS gateway listened on all network interfaces (`*:80`), which includes the Tailscale one. The installer also started Samba file sharing on ports 139 and 445, again on all interfaces. With Tailscale's [default access policy](https://tailscale.com/kb/1018/acls), every device in your tailnet can reach both. We did not test the Tailscale connection itself, because the test VM never joined a tailnet.

The CasaOS app store also has a Tailscale app. We installed Tailscale on the host as above and have not tried the app.

### Using Cloudflare Tunnel with Cloudflare Access

A [Cloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/) connects your server to Cloudflare over an outbound-only connection, so you don't open any ports on your router. On networks that block outgoing traffic, port 7844 has to be allowed out. You get a normal web address, such as `casaos.example.com`, that opens in any browser without an app.

Once you publish a route, though, Cloudflare's [setup guide](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/get-started/create-remote-tunnel/) says: "Anyone on the Internet can now access the application at the specified hostname." For CasaOS, that means its login page and the endpoints that leak data without a login (see [port forwarding](#3_Port_Forwarding_Least_Secure_But_Works)). Put Cloudflare Access in front of it, so Cloudflare asks for a login before anyone gets through to CasaOS.

You need:

- A free Cloudflare account
- A domain added to Cloudflare
- Cloudflare Zero Trust for Access, free for up to 50 users as of November 2026

Cloudflare also limits what a home cloud can send through it. Uploads on the Free plan are capped at 100 MB, and Cloudflare's terms say that customers below Enterprise must use a paid service such as Stream to serve video and other large files, and that Cloudflare may limit access otherwise. For streaming your media, use Tailscale.

#### Option A: create the tunnel in the Cloudflare dashboard

Cloudflare calls this a remotely managed tunnel and [recommends it](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/do-more-with-tunnels/local-management/) "for most use cases". These steps follow [Create a tunnel (dashboard)](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/get-started/create-remote-tunnel/), last updated 23 Jun 2026. We have not run them.

1. Add your domain to Cloudflare, if it isn't there yet.
2. In the Cloudflare dashboard, go to **Networking** > **Tunnels** and select **Create a tunnel**.
3. Copy the install command the dashboard shows for your system and run it on the CasaOS server.
4. Under **Routes**, select **Add route** > **Published application**. Enter a hostname on your domain, such as `casaos.example.com`, and set the service URL to `http://localhost:80`, or the port from `gateway.ini`.
5. Add Cloudflare Access before you use the address (see below).

#### Option B: create the tunnel from the command line

Cloudflare calls this a locally managed tunnel and says it is "intended for specific scenarios such as local development, testing, or legacy configurations". First install cloudflared. Cloudflare's APT repository works on Debian-based systems and keeps cloudflared updated with `apt`:

*Tested by our setup on 17 Nov 2026: Debian 12 in a KVM VM on an Intel Core i3-7100 home server (run from a script, non-interactively). It installed cloudflared 2026.11.0. Repository details from [pkg.cloudflare.com](https://pkg.cloudflare.com/).*

```bash
sudo mkdir -p --mode=0755 /usr/share/keyrings
curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared any main' | sudo tee /etc/apt/sources.list.d/cloudflared.list
sudo apt-get update
sudo apt-get install -y cloudflared
```

Or download the binary from Cloudflare's GitHub releases. This is the x86_64 build; on 64-bit Raspberry Pi OS, use `cloudflared-linux-arm64` instead. A binary installed this way does not update with `apt`.

*Tested by our setup on 17 Nov 2026: Debian 12 in a KVM VM on an Intel Core i3-7100 home server. The download and `chmod` gave cloudflared 2026.11.0. We did not run the `sudo mv` line or the arm64 file.*

```bash
curl -fsSL https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o cloudflared
chmod +x cloudflared
sudo mv cloudflared /usr/local/bin/
```

Paste these as three separate lines. Some older guides print them on one line. Run that way, curl reads `chmod` and everything after it as extra web addresses, so the file is never made executable. That is what happened with the arm64 file in the test for our Pi 5 guide on 17 Nov 2026.

Then log in and create the tunnel. `tunnel login` links cloudflared to your Cloudflare account and saves a `cert.pem` file; `tunnel create` creates the tunnel and a credentials file for it:

*From the official docs: [Create a locally-managed tunnel](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/do-more-with-tunnels/local-management/create-local-tunnel/), last updated 13 Oct 2026. Not tested by us.*

```bash
cloudflared tunnel login
cloudflared tunnel create casaos-tunnel
```

Some older guides use the shorter `cloudflared login`, which is still an alias for `tunnel login` in cloudflared 2026.11.0. The test for our Pi 5 guide checked its help text only, not a real login.

Write a `config.yml` in your `.cloudflared` folder. Put in your tunnel's UUID and the path of the credentials file that `tunnel create` wrote; Cloudflare's example uses the root user's folder:

*From the official docs: [Create a locally-managed tunnel](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/do-more-with-tunnels/local-management/create-local-tunnel/), last updated 13 Oct 2026, with CasaOS's default port 80 filled in. Not tested by us.*

```yaml
url: http://localhost:80
tunnel: <Tunnel-UUID>
credentials-file: /root/.cloudflared/<Tunnel-UUID>.json
```

Point a hostname at the tunnel and start it:

*From the official docs: [Create a locally-managed tunnel](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/do-more-with-tunnels/local-management/create-local-tunnel/), last updated 13 Oct 2026, with an example hostname filled in. Not tested by us.*

```bash
cloudflared tunnel route dns casaos-tunnel casaos.example.com
cloudflared tunnel run casaos-tunnel
```

`route dns` needs the tunnel name before the hostname. In the test for our Pi 5 guide, cloudflared 2026.11.0 rejected the one-argument form from older guides, which gives only the hostname.

You can also skip `config.yml` and give the target to `tunnel run` on the command line. With neither a config file nor `--url`, cloudflared answers every request with HTTP 503.

*From cloudflared's help text and source code (2026.11.0, checked 17 Nov 2026). Not tested by us: it needs a Cloudflare account and a domain.*

```bash
cloudflared tunnel run --url http://localhost:80 casaos-tunnel
```

`tunnel run` keeps running in the terminal. To start the tunnel at boot, see Cloudflare's guide to [running cloudflared as a service on Linux](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/do-more-with-tunnels/local-management/as-a-service/linux/).

#### Put Cloudflare Access in front of CasaOS

In the Cloudflare dashboard, go to **Zero Trust** > **Access controls** > **Applications** and select **Create new application**. Choose **Self-hosted and private**, then **Add public hostname** and enter your CasaOS hostname. Attach an Allow policy that matches only you. Access applications deny everyone by default, so only people who match an Allow policy get through. These steps follow Cloudflare's [self-hosted public application](https://developers.cloudflare.com/cloudflare-one/access-controls/applications/http-apps/self-hosted-public-app/) guide, last updated 17 Apr 2026. We have not run them.

### Port forwarding (not recommended)

Port forwarding sends traffic from your public IP address straight to CasaOS. We don't recommend it for the CasaOS dashboard.

- CasaOS has no HTTPS. Its gateway serves plain HTTP on one port, 80 on a fresh install. In our test VM nothing listened on port 443, and an HTTPS request to the server could not connect. Forwarding 443, as an earlier version of this guide said, reaches nothing, and forwarding 80 sends your password across the internet unencrypted. HTTPS support is an [open feature request](https://github.com/IceWhaleTech/CasaOS/issues/1471), filed on 27 Oct 2023.
- CasaOS has a record of flaws that need no login. In July 2023, [CVE-2023-37265](https://github.com/advisories/GHSA-vjh7-5r6x-xh6g) and [CVE-2023-37266](https://github.com/advisories/GHSA-m5q5-8mfw-p2hr) let unauthenticated attackers run commands as root on versions before 0.4.4. The advisories' workaround was not exposing CasaOS publicly. Until UserService 0.4.7, the login did not defend against password guessing ([CVE-2024-24767](https://github.com/advisories/GHSA-c69x-5xmw-v44x), March 2024). [CVE-2025-34171](https://nvd.nist.gov/vuln/detail/CVE-2025-34171), published 2 Jan 2026, covers every version up to and including 0.4.15: some endpoints answer without a login and leak files under `/var/lib/casaos/1/` and details about the host. As of 17 Nov 2026, 0.4.15 (19 Dec 2024) is the newest stable release, so updating does not fix it.
- It may not work at all. If your ISP uses carrier-grade NAT, your router's WAN address sits in 100.64.0.0/10 and can't receive forwarded ports. You can spot this when the WAN address on your router's status page doesn't match the public IP that a "what is my IP" site shows.

We checked the last flaw on our test install. On CasaOS 0.4.15, with a user already created, this request returned the OS, kernel, CPU count, memory, disk use and CasaOS version without any login. Run it on your server to see what yours shares:

*Tested by our setup on 17 Nov 2026: Debian 12 in a KVM VM on an Intel Core i3-7100 home server.*

```bash
curl -s http://127.0.0.1/v1/sys/debug
```

![Terminal output from a Debian 12 test VM: CasaOS v0.4.15 listening on port 80 only, no answer on HTTPS, and /v1/sys/debug returning system details without a login](/images/how-to-access-casaos-remotely/casaos-remote-vm-terminal.png)

If you can't use Tailscale but can forward a port, forward it to a VPN instead of the dashboard. The CasaOS app store has a WireGuardEasy (wg-easy) app, and our guide to [setting up a VPN to your home network](/set-up-vpn-to-home-network-guide/) covers WireGuard. We have not tested wg-easy on CasaOS.

If you still want to forward the dashboard:

1. Find your server's local IP address:

*Tested by our setup on 17 Nov 2026: Debian 12 in a KVM VM on an Intel Core i3-7100 home server.*

```bash
hostname -I
```

It lists every address on the machine. In our VM it showed the LAN address (10.0.2.15) next to Docker's bridge (172.17.0.1). Use the LAN one, usually 192.168.x.x on a home network.

2. Log in to your router and forward TCP port 80, or the port from `gateway.ini`, to that address. Don't forward 443.
3. From outside your network, open `http://` followed by your public IP address.

We did not test port forwarding, because it needs router changes.

## Best practices for secure remote access

- Keep the dashboard off the open internet, and reach it through Tailscale or a Cloudflare Tunnel with Cloudflare Access.
- CasaOS has no built-in HTTPS, so the encryption has to come from the connection. Tailscale traffic is encrypted by WireGuard, and with a Cloudflare Tunnel the browser talks HTTPS to Cloudflare.
- The CasaOS login has no second factor ([issue #671](https://github.com/IceWhaleTech/CasaOS/issues/671), open since 8 Nov 2022), so add one in front of it. Use an identity provider with two-factor login in Cloudflare Access, or turn on two-factor login for the account you sign in to Tailscale with.
- Keep CasaOS and your server updated, but know the limit: as of November 2026, v0.4.15 is the newest stable CasaOS, and it is still affected by CVE-2025-34171.
- Use a strong, unique password for your CasaOS user.

## Conclusion

For personal use, Tailscale is the simplest safe way to reach CasaOS, because it needs no open ports and keeps the dashboard off the internet. It also works for streaming your media. If you need an address that opens in any browser, use a Cloudflare Tunnel and put Cloudflare Access in front of it.

<a class="embed-card" href="/bitwarden-vs-keepassxc-open-source-password-manager/">Bitwarden vs KeePassXC: which open-source password manager to use in 2026</a>

Related guides:

- [CasaOS review, install and uninstall guide](/casaos-install-review-uninstall/)
- [How to change the CasaOS port](/change-port-casaos/)
- [How to set up a VPN to your home network](/set-up-vpn-to-home-network-guide/)
- [How to build a home server: the beginner's guide](/ultimate-home-lab-guide/)

## Changes

- 18 Nov 2026: added a warning with the CasaOS security advisories, removed the advice to forward port 443 and to turn on SSL and MFA in CasaOS, which has neither, and added carrier-grade NAT and WireGuard notes.
- 18 Nov 2026: the Cloudflare Tunnel section now starts with the dashboard setup, adds Cloudflare Access, and completes the command-line steps (config file, DNS route, run).
- 18 Nov 2026: Tailscale is now the first method, with steps to find the Tailscale address and the CasaOS port, and a "Tested by our setup" box from a test install of CasaOS 0.4.15.
- 18 Nov 2026: added the remote access notes from our Raspberry Pi 5 CasaOS guide (the Tailscale auth key login, the separate-lines warning for the arm64 cloudflared download, the `cloudflared login` alias, the `route dns` argument order and `tunnel run --url`).
