Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I developed my first website for a simple internal application using Webmatrix in a Windows 2008 Server R2 machine. I'm able to open the site with a browser in the same machine as it is running, but cannot open it from any other machine in the network. I cannot open the default IIS7 website either.

The error is 401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied..

This is what I have done so far, without any changes in the results:

  • Changed the port of my site to 80, and the default to 8080
  • Where it lists all the sites (so far just the default and mine), right-clicked on my site, selected Edit Permissions, selected the Security tab, and verified that Everyone has Allow permissions for everything
  • Where it lists all the sites (so far just the default and mine), right-clicked on my site, selected Edit Permissions, selected the Security tab, and added Domain Users with Read & execute, List folder contents and Read permissions.

BTW, I checked these 3 posts with other fellows having the same issues as me and there are no answers.

Can't access IIS7 from my home network

How does one allow access to networked PCs to see your "localhost" in IIS7 - Windows 7

And yes, I can ping the computer running IIS7, the WWW services are enabled with no restrictions, tried disabling firewall, etc.

share|improve this question
Are you running IIS 7.0 or IIS 7.0 Express? WebMatrix installs the latter? – BinaryMisfit Jan 14 '13 at 18:34
Diago, how do I know which version I'm running? – Amarundo Jan 14 '13 at 19:28
I am not sure how to check it in WebMatrix, but when running the site in WebMatrix is the address localhost or localhost:1234 where 1234 is a port number? It sounds to me like it's the latter which means it won't be accessible from other machines on the network at all. – BinaryMisfit Jan 14 '13 at 19:33
it is localhost:1234. But why wouldn't it be accessible using that port number from another machine. And also, what's the point of WebMatrix? Can't you develop anything to be accessible from another computer? Thanks a lot! – Amarundo Jan 14 '13 at 19:43
I'm seeing some articles saying precisely that: WebMatrix is meant to produce sites that can only be run from the same PC. Thanks. – Amarundo Jan 14 '13 at 19:51
up vote 0 down vote accepted

WebMatrix is a development tool and uses IIS Express not IIS. IIS Express is a smaller version of IIS for use during development of an application and not to be used to host the final usable site. It is by default locked down to only allow the local user of the machine to access the site.

To correctly publish your site to IIS to be accessible by others, you need to configure normal IIS on the machine and publish your site from WebMatrix.

Information on configuring your site can be found at Microsoft Support:
How to set up your first IIS Web site

To publish from WebMatrix the following should help: Publish your Website

I would also suggest you read the following in detail with regards to WebMatrix:

WebMatrix 2

Among other things the following is important (bold by me)

WebMatrix is a free and lightweight web development tool. Create, publish, and maintain your website with ease.

share|improve this answer
Thanks. I will be using that later on. For now, I found this workaround:… – Amarundo Jan 14 '13 at 20:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .