Onlyoffice/NextCloud with tailscale

I Have a little problem with onlyoffice in nextcloud when accessing it via tailscale.

I get the message that “OLNLYOFFICE is not reachable. Contact system admin.”

What have i done wrong?

It works locally on the PC where im running umbrel an nextcloud/onlyoffice.

I got it working on my Android phone using tailscalle.

But if i try from a pc running tailscale it won’t work.

Do i really need ONLYOFFICE installed on the PC i use, Or will it use the web app?

I was not able to use umbrel.local I had to use the server local IP address to make it work.

Hey! I’ve run into this one before. I’m pretty sure it’s the address Nextcloud is telling your browser to load OnlyOffice from. Nextcloud doesn’t proxy the editor, your browser connects straight to the OnlyOffice server. So if that address only works on your home network, any device that can’t reach it gets the “not reachable” message, even though Nextcloud itself opens fine.

Things I’d check:

  1. In Nextcloud go to Administration settings > ONLYOFFICE and look at the “ONLYOFFICE Docs address”. If it’s umbrel.local or a 192.168.x.x address, that’s probably it. umbrel.local doesn’t resolve over Tailscale, and a LAN IP only works if you’re on the same network (my guess is your phone was on your home wifi when you tested, or has subnet routing set up).

  2. Swap that hostname for your Umbrel’s Tailscale IP (the 100.x.x.x one) or its MagicDNS name, keep the same port, and save. Then open Nextcloud on the PC using that same Tailscale address too, not umbrel.local.

  3. Quick check from the PC: put the OnlyOffice address straight into the browser. If you get the “Document Server is running” page, the connection is fine and it’s just the Nextcloud setting. If it doesn’t load, it’s a network/Tailscale thing on that PC.

Also, if you’re opening Nextcloud over https (like through Tailscale Serve) and OnlyOffice is plain http, the browser will block it as mixed content, so keep both on the same protocol.

Let us know what the address is set to if it still doesn’t work!

Thanks,

I tried to swap the IP from local to tailscale, But i get an error Error when trying to connect (Ogiltigt hälsokontrollstatus) something “healthcheck”

Ah nice, that’s actually progress. That healthcheck error means Nextcloud itself is now refusing to connect to that address. Nextcloud blocks connections to local or private IPs by default, and Tailscale’s 100.x addresses count as private too. Someone hit the same error here a couple of weeks ago and this fixed it for them.

Open the Terminal in Umbrel’s settings, pick umbrelOS, and run:

sudo docker exec -u www-data nextcloud_web_1 php occ config:system:set onlyoffice allow_local_address --type=boolean --value=true

It should say something like “allow_local_address set to boolean true”. Then go back to the ONLYOFFICE settings in Nextcloud and hit Save again.

While you’re in there, make sure the Advanced server settings still have the internal addresses from the app’s instructions:

ONLYOFFICE Docs address for internal requests from the server: http://onlyoffice-nextcloud-documentserver
Server address for internal requests from ONLYOFFICE Docs: http://nextcloud_web_1

That way Nextcloud and OnlyOffice talk to each other directly inside the Umbrel, and only the main address (http://your-tailscale-ip:5672) is what your browser uses.

One thing to keep in mind: with the main address set to the Tailscale IP, any device that isn’t on Tailscale won’t be able to open the editor, so just keep Tailscale running on everything you edit docs from.

That solved my problem!

Thank you very much!