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
Antman

 

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
DeWire

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
H2SO4

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
DeWire

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
logicearth

Windows 8.1 Pro (x64)
 
 

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

Windows 7
 
 

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

 

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

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
domzique

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
rasoulhamidian

Windows 7
 
 

My System SpecsSystem Spec
Reply

 Localhost not working




Thread Tools





Similar help and support threads
Thread Forum
localhost is not working
I try to connect to my localhost via firefox, i even have the 127.0.0.1 localhost in my hosts file, and still does not connect. I was trying to configure a controller for JDownloader, and i need to check if my localhost works. http://i60.tinypic.com/6jh8ww.jpg Any help would be...
Network & Sharing
Windows 7 x64 and localhost to web
hey guys, I'm newbie in this forum! :P I using Windows 7 Home Pre x64 and XAMPP in my computer, also I sharing my website from my personal computer: Kaan Kölköy - Ana Sayfa ... So I sharing my website on a free domain but i want buy a domain, but I have some questions. 1 - Can I connect...
Network & Sharing
ODBC cannot connect to localhost
On a Win7Pro-32 system running in XP mode, I'm trying to use ODBC (v5.1.9) to connect to a MySQL db on localhost. Interestingly, when using a username with remote host privileges I am able to connect to a remote db - this tells me ODBC is installed and working properly. Yet when I try to connect...
Virtualization
Cant browse to localhost with iis 7 and 2 ips
Hi Guys, Yesterday I was able to browse to http://localhost and see my iis webserver, today I installed an extra ip address onto my machine so I now have 192.168.10.251 and 192.168.10.252 and now when I browse to localhost I get a forbidden message? Does anyone know how to get my iis back...
Network & Sharing
Localhost FTP For Dreamweaver
More problems I don't seem to be able to get my FTP localhost server going with Dreamweaver I have downloaded XAMPP & installed it its working ok I have followed many tutorial Video's on the subject But when I go to view the new site it doesn't show it I am using Wordpress now its...
Network & Sharing
ping localhost wrong ip
hello, when i ping "localhost" comes a ip like this "::1:".. but i want 127.0.0.1 for coding in xampp. i have disable the ipv6 in the connection settings but localhost says still "::1:". ps: sry for bad english, im form germany. ;)
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 02:38.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App