Apache Guacamole is worth self-hosting if the machines you need to reach sit on a network you already control and you want to get to them from any browser. It is the wrong replacement for TeamViewer or AnyDesk if you mostly help other people with their own computers. Guacamole is a gateway, not a remote support tool. It has no client to install on the far machine, no ID-and-password handshake and no relay that gets through someone else's router. If you cancel a subscription expecting the same experience, you will spend your weekends on port forwarding, VPNs and RDP settings instead.
TL;DR: who should and should not switch
- The homelab owner (for example, someone with a Proxmox host, two Linux VMs and a Windows gaming PC on one LAN): self-host Guacamole, because every target already speaks SSH, RDP or VNC and sits behind a single gateway you run.
- The family IT helper (for example, someone who fixes a parent's laptop two towns away every month): keep TeamViewer, AnyDesk or a free equivalent, because Guacamole cannot reach a machine behind a router you do not control without extra networking on that end.
- The freelancer with one office PC (for example, a designer who needs their workstation from a hotel): consider a mesh VPN with a native RDP client first, because one machine rarely justifies a Tomcat, guacd and database stack.
- The small team admin (for example, a five-person agency with a few shared Windows servers): self-host Guacamole with TOTP or OIDC, because central accounts, connection sharing and session recording replace per-seat licences well.
- The locked-down network user (for example, a contractor whose client network allows only HTTPS out): self-host Guacamole, because a browser tab over port 443 gets through where native clients are blocked.
- The creative or gamer (for example, someone who edits video or plays games remotely): avoid Guacamole, because its browser-rendered sessions are tuned for administration, not high frame rates or low-latency audio.
The central tradeoff is simple: Guacamole swaps a vendor's relay and polish for full control of a gateway, and that control only pays off when you also control the network behind it.
Table of contents
- What does Apache Guacamole actually do, and what does it not do?
- How is Guacamole different from TeamViewer and AnyDesk under the hood?
- Can Guacamole reach a computer behind CGNAT or someone else's router?
- What does a working Guacamole stack need on a home server?
- How much does self-hosting Guacamole really cost over 3 years?
- Is a public Guacamole login page a security risk?
- Authentication in Guacamole: TOTP, OIDC and LDAP compared
- How does a Guacamole session feel compared with a native client?
- File transfer, clipboard and the features people miss after leaving AnyDesk
- Why unattended family support breaks down with Guacamole
- When Guacamole is clearly the right tool
- Which remote access setup fits your situation?
- Data sovereignty and remote access: what self-hosting the gateway buys you
What does Apache Guacamole actually do, and what does it not do?
Apache Guacamole is an open source remote desktop gateway, released under the Apache License 2.0. You install it once on a server, open it in a browser, and it connects onward to machines that already run a standard remote access protocol. Your device needs nothing beyond an HTML5 browser. The target machine needs nothing new either, as long as it already accepts the right kind of connection.
What it does:
- Translates protocols for the browser: a C daemon called
guacd, which listens on port 4822 by default, speaks RDP, VNC, SSH, telnet and Kubernetes to your machines and converts each session into the Guacamole protocol. - Serves a web front end: a Java web application, usually running under Apache Tomcat, handles logins, the connection list and the in-browser display.
- Stores connections and users: a MySQL, MariaDB, PostgreSQL or SQL Server database holds connection definitions, permissions and history, so a whole team can share one gateway.
- Adds features on top of the protocol: connection sharing via links, session recording and TOTP two-factor authentication come as extensions.
What it does not do:
- No agent on the far machine: if a computer has no RDP, VNC or SSH server enabled, Guacamole has nothing to connect to.
- No NAT-traversing relay:
guacdhas to be able to reach the target's IP and port directly over the network. - No ID-and-code pairing: you cannot read a nine-digit number over the phone to get onto a stranger's laptop.
That last group is exactly what TeamViewer and AnyDesk customers pay for.
How is Guacamole different from TeamViewer and AnyDesk under the hood?
TeamViewer and AnyDesk are agent-based. Each one installs a proprietary client on both ends, and the clients find each other through the vendor's own brokering infrastructure. Both ends dial out to that cloud. Nobody has to open an inbound port, which is why either tool works through almost any home router. TeamViewer, for example, prefers outbound TCP 5938 and falls back to ports 443 and 80.
Guacamole turns that model around. The gateway you host makes the connection itself, inbound to the target, using the target's native protocol. guacd decodes the remote display on the server and sends image updates and input events to your browser over a WebSocket or HTTP tunnel. Because the browser only ever talks to your gateway, it can sit behind a single HTTPS address.
| Aspect | Guacamole | TeamViewer / AnyDesk |
|---|---|---|
| Software on the target | None new; uses existing RDP, VNC or SSH servers | Vendor agent required |
| Software on your device | Any HTML5 browser | Vendor client, or their web client where offered |
| Who brokers the connection | Your gateway, connecting directly | Vendor-operated cloud servers |
| Network direction to the target | Inbound from gateway to target IP and port | Outbound from both ends to the vendor |
| Protocol | Open standards, translated by guacd | Proprietary, vendor-specific codecs |
| Who sees connection metadata | Only you, in your own logs and database | The vendor, under its privacy policy |
| Source code | Open, Apache License 2.0 | Closed |
The table explains most of what follows in this article. Every strength of Guacamole comes from you owning the broker. Every weakness comes from the same fact: no vendor relay is there to get through networks you do not control.
Can Guacamole reach a computer behind CGNAT or someone else's router?
Not by itself. Many ISPs now put customers behind carrier-grade NAT, which hands out addresses from the shared 100.64.0.0/10 range defined in RFC 6598. A machine behind CGNAT has no public address you could forward a port to, even if you have admin rights on the router. Port forwarding fails in the same way at a relative's house if you cannot get into their router at all. Guacamole needs a network path from guacd to the target's port 3389 for RDP, 5900 for VNC or 22 for SSH, so you have to build one.
Ways to build that path:
- Site-to-site WireGuard: a small router or Raspberry Pi at the remote site dials out to your network on UDP 51820, the default port, and the target becomes routable. This works well, but it means installing hardware or software on a network you do not manage.
- Mesh VPN on the target: Tailscale, Headscale or ZeroTier on the remote machine gets through CGNAT with outbound connections, and
guacdthen connects to the machine's mesh address. You have put an agent back on the target. - Reverse SSH tunnel:
ssh -R 3389:localhost:3389 user@gateway, run from the target, exposes its RDP port on your gateway. It is fragile without something likeautosshand a service unit to restart it. - VNC reverse connection: Guacamole's VNC
reverse-connectparameter makesguacdlisten while the remote VNC server dials in. Your gateway's listening port must be reachable from the internet, and few people configure this.
Every option puts software or configuration on the far end. That requirement is the hidden cost of leaving TeamViewer.
What does a working Guacamole stack need on a home server?
A minimal Docker deployment runs three containers. The official images are guacamole/guacd and guacamole/guacamole, plus a database image such as postgres or mariadb. Getting these to cooperate takes more steps than the single installer TeamViewer gives you.
The pieces you assemble:
- The database schema: Guacamole does not create its own tables. You generate the SQL with
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --postgresql > initdb.sqland load it into the database before first start. - The default account: the schema creates
guacadminwith the passwordguacadmin. Replace it before the gateway is reachable from anywhere. - The web path: the front end listens on port 8080 under
/guacamole/, so your reverse proxy has to rewrite or preserve that path consistently. - WebSocket support: Nginx, Caddy or Traefik must pass the
UpgradeandConnectionheaders. Without them, sessions fall back to the slower HTTP tunnel or drop. - TLS: a browser gateway that carries passwords and keystrokes needs a valid certificate, so plan for Let's Encrypt or an equivalent.
- Network reach: the
guacdcontainer must be able to route to every target, which matters if your targets sit on separate VLANs.
You can host this on a home server, a NAS that runs Docker, a rented VPS, or a managed platform. Yundera is a managed Personal Cloud Server, built on CasaOS, that runs self-hosted apps as Docker containers on a server dedicated to the user. There, Guacamole is installed from an app store in one click and gets a public HTTPS subdomain through NSL.SH mesh routing, with no port forwarding. Wherever the gateway lives, it still needs a network route to the machines you want to control.
How much does self-hosting Guacamole really cost over 3 years?
Guacamole costs nothing to license. Your bill comes from where it runs and from your time. TeamViewer and AnyDesk both offer free plans for personal, non-commercial use, so if you are leaving a paid plan, the honest comparison is against a per-seat or per-tier subscription renewed 3 times over 36 months. This article does not quote vendor prices because they change often. Check the current pricing pages and multiply by your licence count.
| Cost item | Self-hosted Guacamole | TeamViewer / AnyDesk paid plan |
|---|---|---|
| Software licence | Free under Apache License 2.0 | Recurring subscription, usually billed annually |
| Hosting | Electricity for a home server or NAS, or a monthly VPS or managed server fee | Included |
| Domain and TLS | Domain renewal yearly; Let's Encrypt certificates are free | Included |
| Remote-site networking | WireGuard hardware, mesh VPN seats or tunnel upkeep per site you do not control | Included in the relay |
| Setup time | Compose file, schema, reverse proxy, authentication: an evening or several | Install the client |
| Ongoing upkeep | Image updates, database backups, watching security advisories | Vendor handles it |
| Scaling cost | Mostly flat: more users and connections cost little extra | Grows with seats, sessions or devices |
The shape is clear. Guacamole front-loads cost into setup time and then stays almost flat. A subscription stays predictable but grows with every seat you add. The crossover arrives sooner for a team sharing a few servers than for one person helping relatives. If you already run a home server or NAS, or pay for a VPS or a platform such as Yundera for other apps, the marginal hosting cost of Guacamole is close to zero. What remains is your labour, and that cost rises sharply each time a target sits behind a network you do not control.
Is a public Guacamole login page a security risk?
Yes, and the risk is bigger than for a typical self-hosted app. A Guacamole login page sits in front of keyboard-level access to every machine it knows about. Connection records often store the RDP or SSH credentials too, so one compromised Guacamole account can open every target at once. TeamViewer and AnyDesk have also been targets of account takeover and remote access scams. The difference is that a self-hosted gateway is your problem, not a vendor's security team's.
What you are actually defending:
- Brute-force attempts: since version 1.5.0, Guacamole bundles a ban extension that blocks an address after 5 failed logins within 300 seconds by default. You can tune it with
ban-max-invalid-attemptsandban-address-durationinguacamole.properties. Add fail2ban at the reverse proxy if you want longer bans. - Protocol-level bugs: in 2020, CVE-2020-9497 and CVE-2020-9498 showed that a malicious RDP server could exploit
guacdin versions before 1.2.0. The gateway parses complex binary protocols, so patch it like you would patch a browser. - The stored-credential database: connection passwords sit in your MySQL or PostgreSQL database. Restrict database network access, encrypt your backups, and consider leaving passwords out so users type them in at connect time.
- The Tomcat surface: the front end is a Java web application. Keep the container image current and do not expose port 8080 directly; let the TLS reverse proxy be the only way in.
- Exposure itself: the safest public login page is one that is not public. Putting the gateway behind a VPN or an identity-aware proxy removes most of the anonymous attack surface.
Running a public Guacamole gateway is reasonable, but only if you take on patching and monitoring as ongoing work.
Authentication in Guacamole: TOTP, OIDC and LDAP compared
TeamViewer and AnyDesk handle identity in the vendor's account system, with two-factor authentication a toggle away. Guacamole gives you building blocks instead. Each method is a separate extension that you enable through guacamole.properties or, in the Docker image, through environment variables such as TOTP_ENABLED=true or OPENID_ISSUER. You can stack them: the database for permissions, plus a second factor or an external identity provider for login.
| Method | What it needs | Main tradeoff |
|---|---|---|
| Database accounts only | The MySQL or PostgreSQL schema you already loaded | Password only; not acceptable on a public URL |
| TOTP extension | Nothing extra; users enrol an authenticator app on first login | Codes default to 6 digits every 30 seconds; recovery after a lost phone means an admin resets enrolment by hand |
| Duo extension | A Duo account and API credentials | Push approvals are convenient, but you depend on a third-party service again |
| OpenID Connect | An identity provider such as Authentik, Keycloak or Authelia | Single sign-on and central MFA, but one more critical service to run and patch |
| SAML | A SAML identity provider, often in corporate settings | Heavier configuration; worthwhile only if SAML already exists |
| LDAP or Active Directory | A reachable directory server | Uses existing accounts; still needs TOTP or Duo stacked on top for a second factor |
| Header authentication | A reverse proxy that authenticates users and passes a username header | Very flexible, but dangerous if the backend can be reached without going through the proxy |
For one person, TOTP is the sensible minimum and takes minutes to enable. For a small team, OpenID Connect pays off once you have more than a handful of users, because removing someone happens once in the identity provider instead of in every app.
How does a Guacamole session feel compared with a native client?
For administration it feels fine. For anything visual it feels like a compromise. Each frame travels from the target to guacd, which decodes it and re-encodes changed regions as images for the browser. That is an extra hop and an extra encode step compared with Microsoft's Remote Desktop client talking straight to Windows, or AnyDesk using its own codec end to end.
Where you notice the difference:
- Latency on a double hop: if your gateway is in a different city from both you and the target, every keystroke crosses two network paths. Putting the gateway on the target's LAN removes one of them.
- Video and motion: scrolling, video playback and 3D work look choppy, because image-based updates are designed for windows that mostly stand still. Lowering the RDP
color-depthparameter from 32 to 16 cuts bandwidth at the cost of visible banding. - Window resizing: set
resize-methodtodisplay-updateso Windows changes resolution to match your browser window without reconnecting. Thereconnectalternative briefly drops the session. - Keyboard capture: browsers keep some shortcuts for themselves, so key combinations can go to the tab instead of the remote machine. The Guacamole menu, opened with Ctrl+Alt+Shift, offers on-screen input for these cases.
- Audio: RDP sound output works in modern browsers. Microphone input has to be turned on per connection with
enable-audio-input, and you should expect it to lag behind a native client. - Mobile use: a phone browser gives you touch-to-mouse emulation and an on-screen keyboard. It works for restarting a service, and it is tiring for anything longer.
None of these issues stops you managing a server. They do mean Guacamole is a poor replacement if your TeamViewer sessions mostly involve editing photos or watching what someone else is doing on screen.
File transfer, clipboard and the features people miss after leaving AnyDesk
AnyDesk and TeamViewer package their extras into one client. Guacamole has equivalents for most of them, but each one is a per-connection parameter that you have to find and switch on. Nothing is enabled by default.
| Feature | AnyDesk / TeamViewer | Guacamole equivalent |
|---|---|---|
| File transfer | Built-in file manager window | RDP: enable-drive plus drive-path maps a virtual drive into Windows. SSH and VNC: enable-sftp adds a file browser in the Guacamole menu. Uploads also work by dragging files onto the browser window |
| Clipboard | Shared automatically, files included | Text only. Chromium-based browsers can sync automatically once permission is granted; other browsers use the text box in the Ctrl+Alt+Shift menu |
| Printing | Remote printing to a local printer | RDP enable-printing adds a virtual printer that hands you a PDF download, which relies on Ghostscript inside guacd |
| Inviting someone to a session | Send an ID or a session link | Sharing profiles create links with read-only or full control, but only for connections that already exist in Guacamole |
| Chat during a session | Built in | None; use a separate messenger |
| Wake-on-LAN | Available on paid tiers | wol-send-packet and wol-mac-addr, added in 1.5.0, wake the target before connecting, provided guacd can broadcast on its LAN |
| Reboot and reconnect | One click, reconnects automatically | Reboot from inside the session, then reconnect by hand once the service comes back |
The pattern is consistent. Guacamole covers most features with a server-side switch, at the cost of reading the protocol parameter list in the manual. Two gaps matter most when you support other people: no file clipboard and no built-in chat. Both are small for an admin and annoying for a helpdesk.
Why unattended family support breaks down with Guacamole
Even once you have a network path to a relative's computer, Guacamole fights the support use case at almost every step. TeamViewer and AnyDesk were designed for helping a person sitting at a screen. Guacamole was designed for administering machines nobody is sitting at.
Where it goes wrong:
- Windows Home cannot host RDP: Remote Desktop hosting needs Windows Pro, Enterprise or Education. Most family laptops ship with Home, so RDP, Guacamole's strongest protocol, is not available to you.
- RDP hides the screen from the person you are helping: an RDP login takes over the session and the person at the PC sees a lock screen. You cannot watch together while they show you the problem.
- VNC means installing an agent anyway: seeing the shared screen requires a VNC server such as TightVNC or UltraVNC on Windows, or enabling the VNC password option in macOS Screen Sharing. You are back to installing and maintaining software on their machine, which is the job a TeamViewer client already did.
- Addresses and power states drift: a DHCP lease change, a router swap or a laptop going to sleep breaks a saved connection. Wake-on-LAN over Wi-Fi is unreliable on most consumer laptops.
- Nobody can call you in: there is no "read me your code" flow. Your relative cannot start a session; you must have already set one up.
If helping family is most of what your subscription covered, better replacements exist. Windows has Quick Assist built in at no cost. RustDesk follows the TeamViewer model of an agent plus relay, and you can run its relay server on your own hardware. Both keep the "person at the screen" workflow that Guacamole lacks.
When Guacamole is clearly the right tool
Guacamole is a poor family helpdesk, but it is excellent in situations where you own both the gateway and the targets. In these cases, the weaknesses covered above either do not apply or become strengths.
Where it earns its place:
- A homelab with many headless machines: Proxmox VMs, a TrueNAS box, Raspberry Pis and a Windows Pro desktop all on one LAN. One bookmark replaces a drawer full of SSH keys and RDP files, and nothing has to be installed on any target.
- Networks that only allow HTTPS out: hotel Wi-Fi, a client's corporate network or a school network that blocks port 3389, 22 and vendor relay ports usually still allows 443. A browser tab to your gateway gets through.
- Devices where you cannot install software: a borrowed laptop, a locked-down work machine or a Chromebook. Any recent browser is enough, with no admin rights needed.
- Shared admin access with an audit trail: set
recording-pathandcreate-recording-pathon a connection to record graphical sessions, and settypescript-pathto capture SSH text output. Recordings can be played back from the session history in the web interface in recent releases, andguacencconverts them to video. - Pooled Windows hosts: a connection group of type "balancing" spreads users across several RDP servers, which is useful for a small terminal server setup.
- Granular permissions: you can let a contractor reach exactly 2 connections, with read-only sharing, without giving them VPN access to the whole subnet.
All six share one condition. The network behind the gateway belongs to you, so the reachability problem from earlier never comes up. If most of your remote sessions look like this list, Guacamole is a strong replacement for a paid subscription.
Which remote access setup fits your situation?
| Profile | Recommendation | Main reason |
|---|---|---|
| Homelab owner, all targets on one LAN | Self-host Guacamole | No agents, one gateway, every target already reachable |
| Small team sharing a few Windows servers | Self-host Guacamole with OIDC or TOTP | Central accounts, sharing and recording without paying per seat |
| Contractor on HTTPS-only networks | Self-host Guacamole | A browser tab over port 443 gets through |
| Freelancer with one office PC | Mesh VPN plus a native RDP client | One target does not justify a three-container stack |
| Family IT helper | Quick Assist, RustDesk or a vendor free plan | The person at the screen has to see and start the session |
| Paid helpdesk serving outside clients | Keep a commercial support tool | Ad-hoc sessions behind unknown networks are what you pay for |
| Gamer or video editor | Native streaming tools such as Moonlight | Image-based browser rendering cannot keep up with motion |
Next steps
If you are self-hosting Guacamole:
- Choose where the gateway runs: a home server, a NAS, a VPS or a managed platform such as Yundera.
- Change the
guacadminpassword and turn on TOTP before the first public exposure. - Add connections one protocol at a time and test resizing and file transfer on each.
If you are using a mesh VPN instead:
- Install Tailscale, Headscale or WireGuard on your device and on the target.
- Enable RDP or SSH on the target and restrict it to the VPN interface.
- Revisit Guacamole if you later need browser-only access.
If you are keeping a support tool:
- Check whether your use qualifies for a free personal plan.
- Test Quick Assist or RustDesk before your next renewal date.
- Use Guacamole only for machines you own.
Data sovereignty and remote access: what self-hosting the gateway buys you
A remote desktop session carries some of the most sensitive data you have: every password you type, every document on screen and a log of when you connected and to what. With TeamViewer or AnyDesk, the session content is encrypted end to end, but connection brokering and metadata pass through infrastructure the vendor runs, under its jurisdiction and retention policy. With Guacamole, all of it stays on a gateway you choose.
Advantages of owning the gateway:
- Metadata stays with you: login times, source IPs and connection targets live in your own
guacamole_connection_historytable, not in a vendor's account dashboard. - Recordings are your files: session recordings and SSH typescripts are written to a path you set, on storage you can encrypt, back up or delete on your own schedule.
- No third-party processor for internal access: if colleagues use the gateway to reach systems that hold personal data, you have one fewer GDPR Article 28 processor agreement to review.
- Hosting location is a decision you make: a home server, a NAS in the office, a VPS in a jurisdiction you pick or a dedicated managed server all keep the broker under your control.
Sovereignty checklist before you rely on it:
- Where TLS terminates: a CDN or proxy in front of the gateway that decrypts traffic can see keystrokes. Terminate TLS on infrastructure you control.
- Where the database lives: stored connection passwords have to be covered by encrypted backups.
- How long history is kept: decide on a retention period and prune history and recordings to match it.
- Who can read recordings: restrict the recording directory and the admin permission that allows playback.
Sovereignty here only holds if the whole chain is yours, not just the container.
