Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 26th, 2004, 09:51 PM
marthirial marthirial is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 marthirial User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
help me understand localhost

I've been trying to run IIS 5 as a testing server for my web projects. My testing pc is in a LAN using a Dlink router to also share DSL connection.

I don't expect to serve my website from this PC, just to have a localhost able to process my ASP scripts for testing.

Now, for some reason, the localhost doesn't work at all. I've made three fresh installations of IIS 5 on my W2k PC and all the time, the same: typing http://localhost/ results in error page cannot find server or DNS error.

One thing that is curious (or maybe symptom of my mistakes) is that it takes a lot of time (like 3 minutes) for explorer to give me this error page.

I would appreciate if somebody can guide me through the process of setting up my IIS-router-localhost successfuly

Thanks in advance.

Reply With Quote
  #2  
Old January 26th, 2004, 10:14 PM
marthirial marthirial is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 marthirial User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
update:

Now this: I went back to IIS and checked the default website configuration, it has ip address 127.0.0.1 and port 80. So I right clicked one of the help pages included when you install the server and selected browse. The page opened.

I thought the the issue was resolved. Well it isn't.

Now when I type http://localhost/, internet explorer starts opening... the progress bar is getting bigger but nothing, takes at least 10 minutes to give me the error mentioned before.

Reply With Quote
  #3  
Old January 27th, 2004, 07:52 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 21 h 28 m 48 sec
Reputation Power: 180
localhost is a standardized alias for the 127.0.0.1 ip address, which is the local loopback address.

On most machines, localhost is defined in a hosts file. On windows, you will find the hosts file in \windows or \windows\system32\drivers\etc

If you open a command prompt window in a windows os you should be able to issue:

ping localhost

and get replies back from 127.0.0.1

If that all works and you open a web browser to http://localhost and don't get a web page back, then it's time to review your IIS installation.

Reply With Quote
  #4  
Old January 28th, 2004, 08:57 AM
marthirial marthirial is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 marthirial User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Doug G, the piece that was creating some strees in all this process was the router. I found that the router assigns dynamic IP addresses to computers attached to it, so I started using this IP instead of 127.0.0.1 and now it works fine.

I appreciate your input.

Reply With Quote
  #5  
Old February 3rd, 2004, 04:22 PM
Andrew2004 Andrew2004 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 9 Andrew2004 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi

For more convenience, you can use your "computer name" instead of its ip address. For example, "http://<ComputerName>/<VirtualDirectoryName>"

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > help me understand localhost


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway