This is currently not possible. With the release of a node that you can host yourself you should be able to only sync to that node. Right now, the only way to work offline is to either disconnect your machine from the network or block the network communication using some kind of firewall.
I tried applying firewall rules and I successfully disconnected from the node but the 2 computers seem not to be able to recognize each other over LAN.
Are you sure about this? I feel like I’ve read somewhere that this should be already possible, and my experience with syncing new accounts on the same network tells me that the sync is a lot faster than it is over the internet.
I went to the IPv4 settings of Ethernet and set a local ip, a gateway and left DNS to blank so that my PC will be discovered on lan but cant connect to the internet.
I have some programs that run on LAN only and it worked fine after I made the modifications above, so, still the problem is with anytype.
Even when both PCs are connected to the internet, both of them sync only via the backup node, they don’t see each other directly.
If you have your PC(s) treating the network that you are connected to like a public network it won’t be able to make contact with other devices on the network. Make sure that your PC is treating the network as a private network. Here is what the settings for this look like on Windows 11:
Also, depending on what network that you are on, some times peer-to-peer connections can be blocked. For example, I know that a lot of colleges block peer-to-peer connections on their networks so it’s a personal sigh of relief that it works without needing to use a peer-to-peer method of syncing items even if it is slower.