- I started my self-hosted sync server on my system running Arch Linux with the following command:
SYNC_USER1=USER:PASSWORD SYNC_PORT=8080 anki --syncserver
- In the “Preference” settings of my Anki GUI application on the same system as the one running the self-hosted sync server, in the “self-hosted sync server” box of the “Syncing” tab, I entered:
https://localhost::8080/
-
When I hit the “Sync” button in the desktop application I was able to sync my decks to the designated location.
-
In AnkiDroid, I set “Sync url” to http://MY-SYNC-SERVER-IP:8080/sync/, and set “Media sync url” to http://MY-SYNC-SERVER-IP:8080/msync/
-
I then tapped the “Sync” icon on my AnkiDroid, entered the user name and password in the “Email address” and “Password” boxes using the values from the sync server command line. However, I got the following error:
A network error has occurred Java.net.UnknownServiceException: CLEARTEXT communicatiion to xxxx.xxxx.xxxx.xxxx not permitted by network security policy
Please help me solve this issue. Thanks in advance.