# Local WebDav (on Mac) Sync Joplin on Mac app with Joplin on iPad/iPhone (on demand)

**URL:** https://discourse.joplinapp.org/t/local-webdav-on-mac-sync-joplin-on-mac-app-with-joplin-on-ipad-iphone-on-demand/12213
**Category:** Support
**Created:** [4 November 2020 23:37 UTC](https://discourse.joplinapp.org/t/local-webdav-on-mac-sync-joplin-on-mac-app-with-joplin-on-ipad-iphone-on-demand/12213 "2020-11-04T23:37:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bre](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/bre/32/16423_2.png) [@bre](https://discourse.joplinapp.org/u/bre)
#### Post date: [4 November 2020 23:37 UTC](https://discourse.joplinapp.org/t/local-webdav-on-mac-sync-joplin-on-mac-app-with-joplin-on-ipad-iphone-on-demand/12213/1 "2020-11-04T23:37:43Z")

</div>

I have a large note base that changes infrequently and don’t want to pay for cloud storage (Dropbox, etc), thus started looking into the Local WebDav (on Mac) Sync of Joplin on Mac app with Joplin on iPad/iPhone (on demand).

I posted this previously and @tessus recommended to use Docker image of [bytemark/webdav](https://hub.docker.com/r/bytemark/webdav/)

I did not try this option yet, and was exploring on my own and run into problems that perhaps you can help to solve.

First potential solution is to use wfsctl command in mac terminal.

Here is my progress so far:

(substitute $USERNAME with your username)

1. sudo mkdir /Users/$USERNAME/Library/WebServer/joplin
2. sudo chown $USERNAME:staff /Users/$USERNAME/Library/WebServer/joplin
3. sudo wfsctl share /Users/$USERNAME/Library/WebServer/joplin
4. sudo wfsctl start

After that I use **webdav** in Joplin synch configuration, point to a local mac address: [https://192.168.1.16/webdav/joplin](https://192.168.1.16/webdav/joplin) and provided my mac's username and password.

I also had to check "Ignore TLS certificate errors" for it to work

Clicking on "Check synchronization configuration" gives me "Success! Synchronisation configuration appears to be correct."

However when I click on synchronize button, I get an error:

Completed: 03/11/2020 10:16  
Last error: Error: href /joplin/locks/ not in baseUrl [https://192.168.1.16/webdav/joplin](https://192.168.1.16/webdav/joplin) nor relativeBaseUrl /webdav/joplin

When I try to use the same on iphone, the error is "Network request failed" - please check that URL, username and password, etc are correct...

Another potential solution is a WebDavNav Server - a free app one can download from the app store: [https://apps.apple.com/us/app/webdavnav-server/id747482894?mt=12](https://apps.apple.com/us/app/webdavnav-server/id747482894?mt=12)

Setting up webdav on it is very straightforward and I have no problem to connect to share outside joplin. Interestingly I get exactly the same error when I use this app webnav setup (Last error: Error: href /joplin/locks/ not in baseUrl [https://192.168.1.16/webdav/joplin](https://192.168.1.16/webdav/joplin) nor relativeBaseUrl /webdav/joplin)

It appears that I need to setup a relativeBaseUrl to fix it.  
Do you know how?

---

<div class="post-metadata">

### Author: ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)
#### Post date: [5 November 2020 00:03 UTC](https://discourse.joplinapp.org/t/local-webdav-on-mac-sync-joplin-on-mac-app-with-joplin-on-ipad-iphone-on-demand/12213/2 "2020-11-05T00:03:19Z")

</div>

I thought you needed something to quickly test WebDAV. For that I have suggested Docker.

For a permanent solution I'd setup Apache and WebDAV myself. However, others feel perfectly comfortable running production services with Docker. It many cases it even makes sense.  
I'm just a bit old school.
