# Self-hosted Anytype over openziti

**URL:** <https://openziti.discourse.group/t/self-hosted-anytype-over-openziti/5415>\
**Category:** General Questions\
**Created:** [December 10, 2025, 8:29pm UTC](https://openziti.discourse.group/t/self-hosted-anytype-over-openziti/5415 "2025-12-10T20:29:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rand](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rand](https://openziti.discourse.group/u/rand)\
**Post date:** [December 10, 2025, 8:29pm UTC](https://openziti.discourse.group/t/self-hosted-anytype-over-openziti/5415/1 "2025-12-10T20:29:58Z")

</div>

Hello community!

I’ve successfully installed openziti network and it’s working great with web-services. Recently I’ve tried to install self-hosted Anytype server and it also works fine in my local network. But it doesn’t work over openziti network.

Here is what was used:

1. original docker-compose of any-sync [any-sync-dockercompose/docker-compose.yml at main · anyproto/any-sync-dockercompose · GitHub](https://github.com/anyproto/any-sync-dockercompose/blob/main/docker-compose.yml)
2. openziti service for anytype - intercept and host tcp/udp 1001-1006 and 1011-1016

when I start anytype it says connection is working fine. but it fails few minutes later to sync notices. debug network returns perfect log:

> system info: GoOS:linux,Kernel:Linux,Core:6.8.0-88-generic,Platform:x86\_64,OS:GNU/Linux,Hostname:tt-IdeaPad-Slim-3,CPUs:8  
> open TCP conn, addr: [at.mydomain.net:1004](http://at.mydomain.net:1004)  
> TCP conn established, ip:100.64.0.3:1004, dur: 108.411891ms  
> start handshake  
> handshake success, dur: 395.769125ms, total: 504.203089ms  
> open yamux session  
> yamux session success, dur: 33.877µs, total: 504.255547ms  
> open sub connection  
> open sub conn success, dur: 83.681µs, total: 504.35683ms  
> start proto handshake  
> proto handshake success, dur: 137.746777ms, total: 642.11164ms  
> start configuration request  
> configuration request success, dur: 109.395655ms, total: 751.521894ms, nid: N5N8qc24kecLAbiYgmBbhvvaCXNc2ZFbzhf6njxhpdiWKF7g  
> success, dur: 751.549974ms  
> open QUIC conn, addr: [at.mydomain.net:1014](http://at.mydomain.net:1014)  
> QUIC conn established, ip:quic://100.64.0.3:1014, dur: 629.486798ms  
> open sub connection  
> open sub conn success, dur: 28.569µs, total: 629.539395ms  
> start proto handshake  
> proto handshake success, dur: 189.908981ms, total: 819.461508ms  
> start configuration request  
> configuration request success, dur: 68.160138ms, total: 887.646793ms, nid: N5N8qc24kecLAbiYgmBbhvvaCXNc2ZFbzhf6njxhpdiWKF7g  
> success, dur: 887.661182ms

But, I see in device log error

> Dec 10 23:16:56 tt-IdeaPad-Slim-3 ziti-edge-tunnel[906145]: (906145)[1991.934] ERROR tunnel-sdk:tunnel\_tcp.c:191 on\_tcp\_client\_err() client=tcp:100.64.0.1:60112 err=-14, terminating connection  
> Dec 10 23:16:56 tt-IdeaPad-Slim-3 ziti-edge-tunnel[906145]: (906145)[1991.964] WARN ziti-sdk:channel.c:574 dispatch\_message() ch[0] received message without conn\_id or for unknown connection ct[DataType] conn\_id[16]

and in openziti controller logsr:

> Dec 10 23:16:59 openziti-controller ziti[7525]: {"file":"[github.com/openziti/ziti/controller/network/fault.go:32","func":"github.com/openziti/ziti/controller/network.(\*Network).fault","level":"info","msg":"network](http://github.com/openziti/ziti/controller/network/fault.go:32%22,%22func%22:%22github.com/openziti/ziti/controller/network.(*Network).fault%22,%22level%22:%22info%22,%22msg%22:%22network) fault processing for [1] circuits","time":"2025-12-10T23:16:59.929Z"}  
> Dec 10 23:16:59 openziti-controller ziti[7525]: {"circuitId":"6mO4wBeqethellXN3hZgrT","file":"[github.com/openziti/ziti/controller/network/fault.go:49","func":"github.com/openziti/ziti/controller/network.(\*Network).fault","level":"info","msg":"sent](http://github.com/openziti/ziti/controller/network/fault.go:49%22,%22func%22:%22github.com/openziti/ziti/controller/network.(*Network).fault%22,%22level%22:%22info%22,%22msg%22:%22sent) unroute for circuit to router in response to forwarding fault","routerId":"bkkm5uS80S","time":"2025-12-10T23:16:59.929Z"}  
> Dec 10 23:17:29 openziti-controller ziti[7525]: {"file":"[github.com/openziti/ziti/controller/network/fault.go:32","func":"github.com/openziti/ziti/controller/network.(\*Network).fault","level":"info","msg":"network](http://github.com/openziti/ziti/controller/network/fault.go:32%22,%22func%22:%22github.com/openziti/ziti/controller/network.(*Network).fault%22,%22level%22:%22info%22,%22msg%22:%22network) fault processing for [1] circuits","time":"2025-12-10T23:17:29.930Z"}  
> Dec 10 23:17:29 openziti-controller ziti[7525]: {"circuitId":"5k2ugOZ4mFsvabcLCxvtzc","file":"[github.com/openziti/ziti/controller/network/fault.go:49","func":"github.com/openziti/ziti/controller/network.(\*Network).fault","level":"info","msg":"sent](http://github.com/openziti/ziti/controller/network/fault.go:49%22,%22func%22:%22github.com/openziti/ziti/controller/network.(*Network).fault%22,%22level%22:%22info%22,%22msg%22:%22sent) unroute for circuit to router in response to forwarding fault","routerId":"bkkm5uS80S","time":"2025-12-10T23:17:29.930Z"}  
> Dec 10 23:18:39 openziti-controller ziti[7525]: {"file":"[github.com/openziti/ziti/controller/handler\_edge\_ctrl/subscribe\_to\_data\_model.go:54","func":"github.com/openziti/ziti/controller/handler\_edge\_ctrl.(\*subscribeToDataModelHandler).HandleReceive","index":103,"level":"info","msg":"data](http://github.com/openziti/ziti/controller/handler_edge_ctrl/subscribe_to_data_model.go:54%22,%22func%22:%22github.com/openziti/ziti/controller/handler_edge_ctrl.(*subscribeToDataModelHandler).HandleReceive%22,%22index%22:103,%22level%22:%22info%22,%22msg%22:%22data) model subscription request received","routerId":"bkkm5uS80S","time":"2025-12-10T23:18:39.149Z","timelineId":"jVbDeEkDg"}  
> Dec 10 23:18:39 openziti-controller ziti[7525]: {"currentIndex":103,"file":"[github.com/openziti/ziti/controller/sync\_strats/rtx.go:189","func":"github.com/openziti/ziti/controller/sync\_strats.(\*RouterSender).handleSyncRequest","level":"info","msg":"data](http://github.com/openziti/ziti/controller/sync_strats/rtx.go:189%22,%22func%22:%22github.com/openziti/ziti/controller/sync_strats.(*RouterSender).handleSyncRequest%22,%22level%22:%22info%22,%22msg%22:%22data) model subscription started","renew":true,"requestedIndex":103,"routerId":"bkkm5uS80S","routerName":"er1","subscriptionDuration":"2025-12-10 23:23:39.149384495 +0300 MSK m=+197354.313819323","time":"2025-12-10T23:18:39.149Z","timelineId":"jVbDeEkDg"}  
> Dec 10 23:24:09 openziti-controller ziti[7525]: {"file":"[github.com/openziti/ziti/controller/handler\_edge\_ctrl/subscribe\_to\_data\_model.go:54","func":"github.com/openziti/ziti/controller/handler\_edge\_ctrl.(\*subscribeToDataModelHandler).HandleReceive","index":103,"level":"info","msg":"data](http://github.com/openziti/ziti/controller/handler_edge_ctrl/subscribe_to_data_model.go:54%22,%22func%22:%22github.com/openziti/ziti/controller/handler_edge_ctrl.(*subscribeToDataModelHandler).HandleReceive%22,%22index%22:103,%22level%22:%22info%22,%22msg%22:%22data) model subscription request received","routerId":"bkkm5uS80S","time":"2025-12-10T23:24:09.148Z","timelineId":"jVbDeEkDg"}

Two questions

1. is there anyone who successfully running self-hosted anytype?
2. any ideas what went wrong?

openziti v1.6.12  
anytype 0.51.2

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [December 11, 2025, 5:59pm UTC](https://openziti.discourse.group/t/self-hosted-anytype-over-openziti/5415/2 "2025-12-11T17:59:25Z")

</div>

Hi @rand, welcome to the community and to OpenZiti!

Could you possibly give me the exact steps you used along with your .env files (redacted as necessary) I could try it out at some point. I don't/haven't used AnyType yet but I'd be happy to take a look maybe this weekend if I can.

---

<div class="post-metadata">

**Author:** ![rand](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rand](https://openziti.discourse.group/u/rand)\
**Post date:** [December 12, 2025, 7:24pm UTC](https://openziti.discourse.group/t/self-hosted-anytype-over-openziti/5415/3 "2025-12-12T19:24:37Z")

</div>

Greatings, @TheLumberjack !

anytype .env is default

.env.override  
EXTERNAL\_LISTEN\_HOSTS="192.168.1.132"

openziti anytype-host-config

```auto
{
  "name": "anytype-host-config",
  "configTypeId": "NH5p4FpGR",
  "data": {
    "address": "192.168.1.132",
    "forwardProtocol": true,
    "forwardPort": true,
    "allowedPortRanges": [
      {
        "low": 1001,
        "high": 1006
      },
      {
        "low": 1011,
        "high": 1016
      }
    ],
    "allowedProtocols": [
      "tcp",
      "udp"
    ],
    "httpChecks": [],
    "portChecks": []
  },
  "tags": {}
}

```

and it didn't work. But  
I have great news @TheLumberjack and I'll save your weekend!  
Your question helped me to find a solution. I just added extra ips in EXTERNAL\_LISTEN\_HOSTS, I don't know for sure which one is worked. First IP I got from logs of laptop with openziti tunnel (anytype ip) and another IP was my public IP of controller and edge router openziti.  
Now both of my devices are syncing remotely. Thank you @TheLumberjack !

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [December 13, 2025, 4:42pm UTC](https://openziti.discourse.group/t/self-hosted-anytype-over-openziti/5415/4 "2025-12-13T16:42:32Z")

</div>

sweet - i was gonna check this out today but you indeed saved me from doing so! 🙂 cheers
