My goal is to access public server using UNC path \\server_ip\folder
syntax. My ISP is blocking port 445, so i cannot access server using SMB
protocol. The questions are:
- There are still no easy method to force windows use
SMB
protocol via other port than 445 (for example 80)? - That leaves me
WebDAV
protocol. How to force windows explorer to use this protocol? I setupWebDAV
server. I can access files via browser, but not with UNC path in windows explorer. I cannot accessWebDAV
server from local machine and from remote machine using explorer. I tried\\ip:80\folder
and\\ip@80\folder
– they refused to connect. I also editedNetwork Connections - Advanced Settings - Provider Order
and madeWeb Client Network
first and tried to access using simple form\\ip\folder
, but wireshark showed that it was accessed using port 445. So still notWebDAV
.
EDIT:
Of cource I can use UNC, there is no doubt. For example, see:
How can I access a webDAV folder as a UNC share?
Ok if you don't like I'm doing over public, then how can I access it in my LAB. WebDAV folder is on my local PC and I'm accessing it via UNC on my local PC. I see windows cannot access. HTTP/1.1 405 Method not alowed.
IIS is version 10.0.17134.1
EDIT: so nobody who managed to do it would tell?
Best Answer
If you have configure a webdav server windows should connect to it, but you cannot use UNC path, you have to use the URL of your webdav, follow this guide: Reference
NOTE: by default the windows client will refuse to connect to a plain webdav server, use authentication and TLS for your connection.
as per @Lenniey says, do not expose standard windows port (especially SMB protocol which is not pretty secure) some ransomware were use SMB vulnerability (should fixed now) to propagate them self over the network. To access the server with UNC path use a VPN like @Lenniey says.
Or think about to use different protocol like ssh.