Skip to content

Instantly share code, notes, and snippets.

@LanYunDev
Forked from namuan/setup_webdav.md
Last active September 25, 2024 02:51
Show Gist options
  • Save LanYunDev/141a3032f10c0b4b7bce260e2f75e1b6 to your computer and use it in GitHub Desktop.
Save LanYunDev/141a3032f10c0b4b7bce260e2f75e1b6 to your computer and use it in GitHub Desktop.
Setting up WebDAV server on Mac

Make sure that Mac Firewall allows incoming connection

cd <dir>
# Start WebDAV server
sudo wfsctl start
# Check status
sudo wfsctl status
# Share current directory
sudo wfsctl share $PWD
# Now you should be able to connect to the WebDAV server given the IP address of your machine and Login details
# To stop sharing
sudo wfsctl unshare $PWD
# Stop WebDAV server
sudo wfsctl stop
# Disable incoming connections in Security settings

More Details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment