Why can't I access SharePoint by UNC path?

The short answer is that URLs don't support spaces, and UNC paths do. You're probably copying the URL into Windows Explorer, so just replace each %20 in your path with a space and you should be off to the races.

This:

http://moss.mysite.com/Shared%20Documents/

Becomes:

\\moss.mysite.com\Shared Documents\

If your SharePoint site is on a port other than 80, drop the port number from the UNC path.

This:

http://moss.mysite.com:2112/Shared%20Documents/

Becomes:

\\moss.mysite.com\Shared Documents\

If that fails, drop to a command prompt and try pinging the server:

ping moss.mysite.com

No response? Something is probably screwed up with DNS. Though you may be able to hit the site in your browser, there may be a redirect going on and it isn't fully configured in DNS. This redirection may be because the "true" web application has a different name or port.

What's the best practice? Give each of your web applications its own IP address with it's own port 80. The only time you use a different port should be when you enable SSL and traffic flows on 443. One application, one IP. You're already maintaining a list of host headers or ports, so get rid of those, get yourself a block of private addresses (I hear they're free), and save yourself more than a few headaches in configuring DNS, routing, and security.

Security? For sure. Who wants user traffic running on anything but standard ports? I don't. If I'm limiting database traffic, I don't want to be doing inclusions and exclusions for 50 applications by port number, I want each to have a big fat IP address to allow or disallow.

DNS is what you use to name applications, not host headers. Why not host headers? "You cannot use Host Headers as the primary means of identifying a web site when using SSL. I don't care what else you've heard, this is the case. . . . Therefore, regarding your configuration, do what you like as long as you don't use host headers on the same site that you require SSL."

 

Published Monday, March 05, 2007 3:34 PM by erobillard

Comments

Tuesday, July 03, 2007 10:59 AM by Anonymous

# re: Why can't I access SharePoint by UNC path?

This works great in XP but doesn't work with Windows 2003.  The only difference I can see between the XP and 2K3 machine (Other than the obvious) is that Office 2003 is installed on the XP machine.  Any ideas why this won't work for 2K3?  

Friday, July 06, 2007 11:46 AM by john

# re: Why can't I access SharePoint by UNC path?

In 2003 you need to enable the Webclient service.

Friday, September 07, 2007 4:00 PM by Joe

# re: Why can't I access SharePoint by UNC path?

I am unable to access my sharepoint site on our line via ip address

(example) http://192.168.1.150

I would get Bad Request (Invalid Hostname)

message

I am using WSS 3.0

Friday, October 19, 2007 9:25 AM by Daniel

# re: Why can't I access SharePoint by UNC path?

I too had the same issue.  Enabling the Web Client service on the Windows 2003 Server corrected the problem.  Thanks!

Saturday, January 05, 2008 9:13 PM by erik

# re: Why can't I access SharePoint by UNC path?

John, Good call. Thanks!

Thursday, April 17, 2008 3:37 PM by Dimitri Ayrapetov

# re: Why can't I access SharePoint by UNC path?

How would you make this work if you had multiple applications on the same server (all sharing one IP)? For example, we have applications on port 2000, 2001, and 2002.

If I try to access \\moss:2001\Documents\ in Vista, it gets converted to \\moss@2001\Documents\ . However, the same does not work in Windows 2003 Server. Any suggestions?

Thursday, November 13, 2008 3:31 PM by mark

# re: Why can't I access SharePoint by UNC path?

this isn't working for me, i enabled the webclient on ther server. when i get a login prompt i enter in credentials and it just pops back up. any clues?

Wednesday, November 26, 2008 3:52 AM by Looka

# re: Why can't I access SharePoint by UNC path?

Same here...webdav (http) works, unc (\\) does not.

Webservices runnig, dns ok, perms ok, it just wont work.

server is 2003 with wss3.

Monday, December 01, 2008 6:42 AM by looka

# re: Why can't I access SharePoint by UNC path?

ALSO - you have to have root top level site created if you want to access your managed path team sites via UNC.

I lost 2 weeks there. : )

Wednesday, December 24, 2008 10:54 AM by James DeFilippi

# re: Why can't I access SharePoint by UNC path?

Anybody notice that the recent MS08-078 patch (KB960714) started prompting for credentials when you connect to SharePoint via UNC?

Thursday, March 19, 2009 8:01 AM by suastiastu

# re: Why can't I access SharePoint by UNC path?

mmn I've got the same problem. Have done all of the above but still no joy. Its a weird and intermittent problem. sometimes it is avaiable, and sometimes not. It appears to be available after logging on interactively and accessing via a browser, and then magically it becomes available as UNC also...only to have it tell me 5 minutes later that the folder does not exist!

I want to set a weapp to store data to a UNC path which is a sharepoint library ut it seems completely unreliable and impossible to get to the root cause.

Monday, May 11, 2009 3:34 AM by Naeem

# re: Why can't I access SharePoint by UNC path?

Hi guys

I am trying to do the opposite of what you guys have shown here and I need some help.

That is: I am trying to access a UNC path using SharePoint.

I there any one has manage to do that please help

Wednesday, July 21, 2010 11:56 AM by Ketan

# re: Why can't I access SharePoint by UNC path?

Hi Naeem,

My requirement is similar to your's. If you find any solution please post it over here.

Thanks,

Ketan

Friday, September 03, 2010 12:35 PM by John Durbin

# re: Why can't I access SharePoint by UNC path?

I want to automate the writing of files to a SharePoint folder with a script.  I've been told that if a SharePoint folder is on a port other than 80 that the folder cannot be accessed using a path.

But above you wrote, "If your SharePoint site is on a port other than 80, drop the port number from the UNC path."  I've tried this but it does not work for me.  Can you provide any more info on this topic?

Wednesday, March 09, 2011 1:39 PM by Badminton Skills

# re: Why can't I access SharePoint by UNC path?

Enabling Webclient service on the Windows 2003 server allowed me to get to sharepoint thru UNC. Thanks for the solution. I'm getting prompted for credentials though, how do I get rid of that?

Friday, April 01, 2011 10:17 AM by Raj

# re: Why can't I access SharePoint by UNC path?

Hi, I'm trying to do something similar. Did you manage to resolve this?

Leave a Comment

(required) 
(required) 
(optional)
(required)