【WebDav】使用IIS服务器实现局域网WINDOWS和IOS文件互传

How To Build an IIS Server on WINDOWS 11 and Transform Files Between IOS and WINDOWS Using WebDav?

Internet Information Services ('2S) is an extensible web server created by Microsoft for use with the Windows NT family.[2] IIS supports HTTP, HTTP/2, HTTPS, FTP, FTPS, SMTP and NNTP. It has been an integral part of the Windows NT family since Windows NT 4.0, though it may be absent from some editions (e.g. Windows XP Home edition), and is not active by default. IIS in WIKI

Step 1. Build an IIS server on WINDOWS 11

Firstly, we should start the IIS manager on Windows.

Control Panel --> Add or Remove Programs --> Windows Features --> And Check if Internet Information Services is installed with at least the ‘Web Administration Tools’ Enabled and The ‘World Wide Web Service’

(img-vamYrT2c-1681373105589)(./assets/image-20230413151249793.png)]

After installing and restarting, you will find Internet Information Services Manager in your start menu.

Step 2. Start the IIS server

Open the IIS manager, right-click [Default Web Site], and add [virtual directory], add name and physical path.

Here we just add a virtual directory at the default web site using the default port: 80. The name you give the virtual directory will be a part of the link, such as http://158.132.6.156/name/; The path will be the folder you want to share.

(img-WqPXN5VO-1681373105590)(./assets/image-20230413153245669.png)]

[(img-fmi2if9Q-1681373105591)(./assets/image-20230413152326812.png)]

After that, click Default Web Site–>WebDav authoring rules–>Enable WebDAV

(img-tiSvWBwN-1681373105591)(./assets/image-20230413152552999.png)]](https://img-blog.csdnimg.cn/e4c76db27d5d4836a6a68717f2f3451a.png)

Click the new added virtual directory–>WebDav authoring rules–>Add authoring rule

(img-Qj0eCNM5-1681373105592)(./assets/image-20230413152734114.png)]](https://img-blog.csdnimg.cn/72d074d47dbf4b0da646ac7401b30565.png)

Before this, be sure you give your shared documents an everyone authority(Right-click the folder, property, Safety, add Everyone and complete control).

在这里插入图片描述

Click new added virtual directory–>authentication–>Start Basic authentication

在这里插入图片描述

Click new added virtual directory–> catalogue browsing–>Start

在这里插入图片描述

Finally, right-click Default Web Site–>manage website–>restart website.

Now you have successfully started your local website! You can visit it by:

http://IP Address//virtual directory name/. For example:http://158.132.6.156/happy/

The username and password is the Email you log in your WINDOWS and its password.

Step 3 Send files from iPhone to Windows

Settings–>Agency

在这里插入图片描述

Close the dedicated agent.

在这里插入图片描述

Download apps that support WebDav such as Documents:

在这里插入图片描述

After adding your link, you can send file to your windows folder.

Questions and solve

If you want to use another port, you can right-click [website] and [add new website], and remember using IP address, don’t set the hostname. Then using the method in step 2.

在这里插入图片描述

After that, you maybe could only visit the web on your computer, but can not from other device in your LAN. You can add new rules for port: Firewall and network protection–>Advanced setting

在这里插入图片描述

在这里插入图片描述

Add rules for both Incoming and Outcoming rule.

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

Then Finish.

How to upload large files?

Some times when you upload large files, it will show ‘413 ERROR’. You can edit the regedit to solve it.

win+R–>regedit–>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services[WebClient](https://so.csdn.net/so/search?q=WebClient&spm=1001.2101.3001.7020)\Parameters

在这里插入图片描述

right-click [FileSizeLimitInBytes], edit the max value to ffffffff for [hexadecimal], then restart.

Useful Link:

Start IIS on Windows

Edit max upload value

Video

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值