I’ve recently setup an sync server on my desktop machine as per the instructions in Self-Hosted Sync Server in the Anki Manual.
I’m running Ubuntu 22.04LTS on the desktop machine (server) and have enabled the firewall to all local traffic. (e.g. sudo ufw allow from 192.168.0.0/24). The server is working. I am able to sync to it from the desktop running the server as well as my Microsoft Surface 7 running Ubuntu 20.04LTS on the same LAN.
The issue I am having is with my iphone 13 (iOS 15.5) running Ankimobile 2.0.90(20090.2). When I try to sync using the same settings as my Surface which works (e.g. Self-hosted sync server: http://192.168.0.211:8080/ ) my sync fails with the following message (typed out verbatim):
Error A network error occurred. Error details: error sending request for url (): error trying to connect: tcp connect error: No route to host (os error 65)
My server launch command is: SYNC_HOST=192.168.0.211 SYNC_USER1=Ben:test anki --syncserver
Server is at the static IP of: 192.168.0.211
ss -tulpn on the server gives:
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp LISTEN 0 128 192.168.0.211:8080 0.0.0.0:* users:((“anki”,pid=3612,fd=12))
sudo ufw status on the server gives:
To Action From
8080 ALLOW 192.168.0.0/24
8080/tcp ALLOW Anywhere
Anywhere ALLOW 192.168.0.0/24
8080/tcp (v6) ALLOW Anywhere (v6)
It seems the issue is with my iphone (since the Surface running Ubuntu is correctly syncing with the current server settings on the other Ubuntu machine). Has anyone had similar trouble getting Ankimobile to sync over a LAN? Is there some setting on the iphone that needs to be enabled/disabled to allow it to communicate out to the LAN as one would expect?
I tend to do the majority of my reviewing on my phone, so any feedback would be greatly appreciated!