Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Localhost not working


17 Oct 2009   #11

 

localhost name resolution is handled within DNS itself.

Out of range for me too, but I know what the foregoing line means.

My System SpecsSystem Spec
.

17 Oct 2009   #12

Windows 7
 
 

Cheers for the attempt but it didnt do anything for me

Im stuck now, i read that article TheSchaft posted in this thread but it looks like a load of gibberish me to... Why was it so easy in Windows XP ?

Dave
My System SpecsSystem Spec
18 Oct 2009   #13

Win7x64
 
 

Quote   Quote: Originally Posted by DeWire View Post
Hi lads,
New here. The name is Dave.

I'm hoping someone can help me out.
When I try to view http://localhost , i get nothing . Page not found.

I have WAMP server installed. I just can't seem to figure out whats wrong. I've restarted all the services in WAMP and everything but still, nothing.

Need this working soon for college assignments.
All help greatly appreciated.

Thanks,
Dave
Please run these two commands (on a CMD prompt) and paste back the results:

PING LOCALHOST

NETSTAT -NA |FIND "LISTENING"

The word LISTENING is case-sensitive so you have to issue that part of the command in capital letters. It doesn't matter for the rest - I'm just using all caps for illustrative purposes.

It's likely that your problem has nothing to do with localhost name resolution and everything to do with the fact that the HTTPD (the web server process) is not listening. If that guess is right, the ping will return successfully but the netstat output won't show the HTTPD listening on TCP port 80.
My System SpecsSystem Spec
.


18 Oct 2009   #14

Windows 7
 
 

Quote:
Please run these two commands (on a CMD prompt) and paste back the results:

PING LOCALHOST

NETSTAT -NA |FIND "LISTENING"

The word LISTENING is case-sensitive so you have to issue that part of the command in capital letters. It doesn't matter for the rest - I'm just using all caps for illustrative purposes.

It's likely that your problem has nothing to do with localhost name resolution and everything to do with the fact that the HTTPD (the web server process) is not listening. If that guess is right, the ping will return successfully but the netstat output won't show the HTTPD listening on TCP port 80.

Hi mate, thanks for your reply.

I think you migh tbe right because i cant see HTTPD in that list. unless i should be looking for 127.0.0.1:80 in that list ? Either way, i dont think its there. Any idea's how to sort it out ?

See image here of CMD results : http://skyonxbox.com/wp-content/uplo...screenshot.png

Thanks,
Dave
My System SpecsSystem Spec
18 Oct 2009   #15

Windows 8.1 Pro (x64)
 
 

Is Apache running?
My System SpecsSystem Spec
18 Oct 2009   #16

Windows 7
 
 

Got it to work from a USB key. Thanks guys
My System SpecsSystem Spec
18 Oct 2009   #17

 

A, b, c, d, r ?
My System SpecsSystem Spec
25 Oct 2009   #18

Windows 7
 
 

@TheSchaft

ive installed loopback adapter and put my ip there (from my head) but it gives me the yellow exclamation mark and i cant use it....i cant find any answer to this over the internet...hope you know how...tnx.
My System SpecsSystem Spec
11 Nov 2009   #19

win 7
 
 

Quote   Quote: Originally Posted by DeWire View Post
Quote   Quote: Originally Posted by TheSchaft View Post
"hosts" is a text file, so you should be able to open it with notepad.
Thanks for that

Quote   Quote: Originally Posted by hosts.text file
# Copyright (c) 1993-2009 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

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
That is all the file has ^^

I can only assume thats bad news. Any ideas how to sort that one out ?

Thanks,
Dave

Hi Dave,
I had the same problem a few days ago.
Install the WAMP packages or XAMPP or something else.

in the host file, replace
Code:
#    127.0.0.1       localhost
by
Code:
127.0.0.1       localhost
the localhost should work.
To write the host file, right-click the host file, choose property, go to security and change the users permissions to TOTAL CONTROL (or something like, i am sorry but i'm actualy using french windows so i don't really know the labels).

You can change and save the file.
My System SpecsSystem Spec
19 Mar 2010   #20

Windows 7
 
 

My System SpecsSystem Spec
Reply

 Localhost not working




Thread Tools



Similar help and support threads for2: Localhost not working
Thread Forum
Solved Apache: Localhost Not Working Network & Sharing
Apache/PHP - localhost stopped working. How do I get it to work again? Network & Sharing
Solved Windows 7 x64 and localhost to web Network & Sharing
localhost problems Network & Sharing
Cant browse to localhost with iis 7 and 2 ips Network & Sharing
Localhost FTP For Dreamweaver Network & Sharing
ping localhost wrong ip Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 03:49 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33