Can't open files on 127.0.0.1 using IIS

Spiritk

Distinguished
May 6, 2006
1
0
18,510
Hello,

I've just installed the IIS component, placed my files in C:inetpubwwwroot and tried to access them through 127.0.0.1/index.htm . However I am constantly denied due to a 'Page cannot be displayed(IE)Could not establish connection to 127.0.0.1(firefox)' errors.

What may cause this?

Thanks
 

Oberon

Distinguished
Apr 9, 2004
146
0
18,680
Have you tried using localhost instead of the 127.0.0.1? Yes they are the same but if IIS is not setup correctly it may not resolve 127.0.0.1. Also look in your c:windowssystem32driversetc dir for a file called hosts. See if 127.0.0.1 is in it to resolve to your localhost. It should look like this:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost


You can also add different ip's and name so you don't have to type out the ip's. Make sure your document home for IIS is setup to look in the right dir.