On 1/16/2024 2:57 PM, Bradley wrote:
> Can someone help me figure out what steps I'm doing wrong on Windows?
Duh. I forgot to list all the steps I did. I need help. Sorry about that.
I think I'm almost there with setting up the local server. But not quite.
The Silent Notes app says it handles encryption & online servers.
It also says it syncs with Windows but it doesn't say how to do it.
Here's what I tried, and I know it's long, but it's something someone else
can try too if they want to set up a WebDAV server on Windows at home.
1. I installed that open source Silent Notes app to test it out on Windows.
https://play.google.com/store/apps/details?id=ch.martinstoeckli.silentnotes
2. I created a few checklists in that Silent Notes app to test it out.
{amazon,costco,homedepot}
3. I realized I needed a WebDAV server on Windows so I watched this video.
How to Setup WebDAV Server On Windows 10 / 11 and Map WebDAV drive
https://youtu.be/M4DZcS6V-Zs
The video glosses over a few steps, so I clarify those steps below.
4. Win+R | control.exe
View by: Category | Programs | Turn Windows features on or off
Expand "Internet Information Services"
Expand "World Wide Web Services"
Expand "Common HTTP Features"
Set the checkbox for "WebDAV Publishing"
Control Panel | Programs | Turn Windows features on or off |
Expand "Internet Information Services"
Expand "World Wide Web Services"
Expand "Security"
Set the checkbox for "Basic Authentication"
OK
5. Start "Windows Administrative Tools" "Internet Information Services (IIS) Manager"
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Internet Information Services (IIS) Manager.lnk
Win+R | %windir%\system32\inetsrv\InetMgr.exe
6. Navigate to the "Default Web Site"
IIS | Connections | Sites | Default Web Site
Under "Default Web Site Home" doubleclick on "WebDav Authoring Rules"
Under "Actions" make sure "Enable WebDAV" is turned on
Rightclick in the "WebDAV Authoring Rules" window
Select "Add Authoring Rule" from the context menu that pops up
Allow access to: All content
Allow access to this content to: All users
Permissions: Read, Source, Write
OK
7. IIS | Connections | Sites | Default Web Site
Under "Default Web Site Home" doubleclick on "Authentication"
Select "Anonymous Authentication" & under "Actions" set it to "Disabled"
Select "ASP .NET Impersonation" & under "Actions" set it to "Disabled"
Select "Basic Authentication" & under "Actions" set it to "Enabled"
Select "Digest Authentication" & under "Actions" set it to "Disabled"
8. IIS | Connections | Your computer name
Doubleclick "Server Certificates"
Rightclick in the windows & select "Create self-signed certificate"
Specify a friendly name for the certificate: My self-signed certificate
Select a certificate store for the new certificate: Personal
OK
9. IIS | Connections | Sites | (Rightclick on "Default Web Site")
Select "Edit Bindings" from the context menu that pops up
In the "Site Bindings" form that pops up, click the "Add" button
Set Type to "https" (Port 443)
Under "SSL certificate" select the certificate you had created
OK | Close
10. Fabricate a test domain by first checking it doesn't exist
Win+R | cmd | ping
myserver.com
That ping should report that the server couldn't be found.
Find your local IP address to add into hosts as that domain
Win+R | cmd | ipconfig | look for "IPv4 Address"
For example: IPv4 Address... 192.168.0.2
Edit C:\Windows\System32\drivers\etc\hosts
192.168.0.2
myserver.com # my local webdav test server
Win+R | cmd | ping
myserver.com
That ping should now report that the server was found.
11. Create a subfolder under C:\inetpub\wwwroot named "android"
Set that subfolder to full access by rightclicking on the subfolder
and selecting "Properties | Security | Edit } CREATOR OWNER |
Press the "Add" button & then the "Advanced" button
Press the "Find Now" button & scroll down the list of users
I selected "Guest" but I wasn't sure what user to select here.
MachineName\Guest | OK
12. In the "Permissions for android" form, select "Guest",
click to "Allow" all permissions & then click "Apply"
And then click "OK" & "OK" to close the folder permission form.
13. I think the instructions missed the "Sharing" step of the folder
C:\inetpub\wwwroot\android
14. To map a WebDAV drive and to populate it with files as a user,
rightclick on "My PC" & in the context menu that pops up,
select "Map network drive" and in the "Folder" field
enter \\MYPC\inetpub\wwwroot\android & click "Finish"
You should now have a new "Z:" drive labeled something like
"android (\\MYPC\inetpub\wwwroot)"
You can also map that network drive from the Windows command line.
net use Y: \\MYPC\inetpub\wwwroot\android
net use X: \\192.168.0.2\inetpub\wwwroot\android
net use U: \\192.168.0.2\inetpub\wwwroot\android /USER:guest
net use W: \\
myserver.com\inetpub\wwwroot\android
Enter the username for '
myserver.com' = guest
Enter the password for '
myserver.com' = <blank>
15. On Android, start the Silent Notes app & click the "cloud" icon.
A Silent Notes activity will ask "Set up the online storage"
to which you click "Continue" & then you select your cloud provider
out of {FTP,WebDAV,Dropbox,Google Driver,OneDrive,Nextcloud,GMX}.
I selected "WebDAV" out of that list.
A form labeled "Online storage credentials" popped up.
Server directory URL:
https://192.168.0.2/inetpub/wwwroot/android
User name = guest
Password = <blank>
[x]Accept unsafe certificates
This is where I'm stuck as I keep trying things but I must have something
wrong with the form of the Windows WebDAV server URL in Silent Notes.
https://192.168.0.2/DavWWWRoot
https://192.168.0.2/inetpub/wwwroot/android
I need a way to test the Windows WebDAV server to make sure it's alive.
(Although the "net use" command worked without error so I think it is.)
I do note that Silent Notes says it only does encryption so I had
to use the "http(s)" instead of "http" but neither works for me yet.
Maybe my self-signed certificate isn't being specified on Windows?
I don't know. I've never done half this stuff. Have you ever done it?
Can someone who wants to set up their own WebDAV server on Windows
with Silent Notes test out the steps I did above - as it should take
you only a few minutes (whereas it took me many hours to get here).
Any help is happily appreciated, although I probably should have
made this a separate post without the home repair folks as their
heads (understandably so) are probably spinning in circles by now.