p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Servers > Internet Information Services
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 24th, 2007, 07:07 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
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..

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old February 26th, 2007, 10:44 AM
Friend of Wrox
Points: 1,424, Level: 15
Points: 1,424, Level: 15 Points: 1,424, Level: 15 Points: 1,424, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 464
Thanks: 0
Thanked 2 Times in 2 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old February 26th, 2007, 10:54 AM
Wrox Author
Points: 12,827, Level: 49
Points: 12,827, Level: 49 Points: 12,827, Level: 49 Points: 12,827, Level: 49
Activity: 15%
Activity: 15% Activity: 15% Activity: 15%
 
Join Date: Oct 2005
Location: Akron, Ohio, USA.
Posts: 4,029
Thanks: 1
Thanked 42 Times in 42 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old February 26th, 2007, 11:13 AM
Registered User
 
Join Date: Feb 2007
Location: , , .
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!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old February 26th, 2007, 11:19 AM
Wrox Author
Points: 12,827, Level: 49
Points: 12,827, Level: 49 Points: 12,827, Level: 49 Points: 12,827, Level: 49
Activity: 15%
Activity: 15% Activity: 15% Activity: 15%
 
Join Date: Oct 2005
Location: Akron, Ohio, USA.
Posts: 4,029
Thanks: 1
Thanked 42 Times in 42 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #6 (permalink)  
Old February 26th, 2007, 12:34 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
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.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolving classpath with ant <xslt> task igraham XSLT 9 September 26th, 2007 04:37 PM
Resolving entities when reading XML dmorin C# 0 September 25th, 2006 10:19 AM
Localhost Yee Dreamweaver (all versions) 6 October 21st, 2004 10:21 AM
Resolving a URL using XSLT vibin_nair XSLT 1 October 21st, 2003 04:53 AM
Resolving NTlogins to an e-mail address omen88 ASP CDO 12 August 20th, 2003 06:53 AM



All times are GMT -4. The time now is 12:42 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc