Wrox Programmer Forums
|
Internet Information Services Limit this to IIS questions and posts. ASP/ASP.NET questions should still go in the ASP/ASP.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Internet Information Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 24th, 2007, 07:07 PM
Registered User
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default resolving localhost

For some reason my comp won't resolve localhost. 127.0.0.1 and actual ip work fine. Running XP Pro SP2, iis5, .NET 2.0, SQLExpress, VS Express.

when i try to browse to localhost, or localhost/..., i get nothing.

I thank you in advance..

Reply With Quote
  #2 (permalink)  
Old February 26th, 2007, 10:44 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

you should edit your hosts file so that it contains a line like:

localhost 127.0.0.1

Its probably in %windir%/system32/drivers/etc

Should be there by default so it'll be worth doing an a/v scan to check nothing has been messing with your hosts file.

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
Reply With Quote
  #3 (permalink)  
Old February 26th, 2007, 10:54 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Cider is correct, by default your host file looks like this:
127.0.0.1 localhost

so something doesnt seem right.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html

Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429
Reply With Quote
  #4 (permalink)  
Old February 26th, 2007, 11:13 AM
Registered User
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, i have checked my host file - it is cool. it looked just like you said it would. I made some other entries in it and tested them to make sure the hosts file i was looking at was the right one. And that it was being used.

I just figured out I can ping localhost - it comes back as ::1. My understanding is that ::1 is supposed to be shorthand for 127.0.0.1. I have my firewall off - it does interfere if i ping my computer ip. But it doesn't help my browser. I cannot deal with localhost. it just sits there forever. 127.0.0.1 works fine, my pc's ip address works fine. ::1 in the browser doesn't work.

Now, what is an A/V scan? Sorry. I haven't heard of it. But I am willing to try it!

Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Thank you!!
Reply With Quote
  #5 (permalink)  
Old February 26th, 2007, 11:19 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

A/V == Anti Virus.

Unfortunately when I ping localhost I return:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

run this command netstat -a

is IIS listening on some other port then 80? (8080 for example)

Are you running another server, WAMP for example, on the same box as IIS?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html

Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429
Reply With Quote
  #6 (permalink)  
Old February 26th, 2007, 12:34 PM
Registered User
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

uh, yeah. Anti-Virus makes sense. Feeling a little sheepish right now...

No, I'm not running any other servers. I am trying to get .NET 2.0 up. Works fine except that it calls admin pages via localhost/... all the time, so none of the admin pages work. And visual studio puts the code I am working on into a browser prefaced with localhost.

But mainly it just pisses me off cuz I should be able to figure this out. I really do appreciate your help!

when i run the netstat command i am having trouble interpreting what i see. To me it looks like it isn't listening at all.

Can you tell me what I should be looking for? I ran it with the -b switch, also, but I still don't understand exactly what I am looking at. Sorry to be dense.

http://hubya.com/images/ss.jpg

this is my netstat results.



Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolving classpath with ant <xslt> task igraham XSLT 9 September 26th, 2007 03:37 PM
Resolving entities when reading XML dmorin C# 0 September 25th, 2006 09:19 AM
Localhost Yee Dreamweaver (all versions) 6 October 21st, 2004 09:21 AM
Resolving a URL using XSLT vibin_nair XSLT 1 October 21st, 2003 03:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.