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   #1
DeWire

Windows 7
 
 
Localhost not working

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


My System SpecsSystem Spec
.
17 Oct 2009   #2
logicearth

Windows 10 Pro (x64)
 
 

Open C:\Windows\system32\drivers\etc\host what does it say?
My System SpecsSystem Spec
17 Oct 2009   #3
DeWire

Windows 7
 
 

Hi mate,

"Windows cant find..... check the spelling and try again" is what comes up.
What does that tell us ? Any more ideas ?

Thanks again,
Dave
My System SpecsSystem Spec
.

17 Oct 2009   #4
TheSchaft

Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
 
 

Hi Dave, welcome to Seven Forums.

"localhost" is the name of your machine. It is 127.0.0.1, and is a loopback. I think you may have the wrong name for WAMP.

You need to check the documentation for the Apache server to ensure you have set it up right.
My System SpecsSystem Spec
17 Oct 2009   #5
logicearth

Windows 10 Pro (x64)
 
 

I forgot "s" at the end of host... C:\Windows\System32\drivers\etc\hosts
My System SpecsSystem Spec
17 Oct 2009   #6
DeWire

Windows 7
 
 

Hi Schaft.
I used WAMP on an XP machine only this week, so i am sure that I am trying to access it the right way. Also, I already tried 127.0.0.1 and I got the same error.

Thanks,
Dave
My System SpecsSystem Spec
17 Oct 2009   #7
DeWire

Windows 7
 
 

Quote   Quote: Originally Posted by logicearth View Post
I forgot "s" at the end of host... C:\Windows\System32\drivers\etc\hosts
It asks me what program I would like to use to open the file ?
Any ideas ? What should i chose ?

Thanks,
Dave
My System SpecsSystem Spec
17 Oct 2009   #8
TheSchaft

Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
 
 

"hosts" is a text file, so you should be able to open it with notepad.
My System SpecsSystem Spec
17 Oct 2009   #9
DeWire

Windows 7
 
 

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
My System SpecsSystem Spec
17 Oct 2009   #10
TheSchaft

Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
 
 

This is getting out of my area of expertise, but maybe some of the stuff at Apache Geronimo v1.1 Documentation : D. Configurando Hosts Virtuales en Geronimo-Tomcat will help.

It's been a long time since I set up an Apache server, but basically you need to tell it what the mapping is from an IP to a host, and that's what the "hosts" file (no extension - a Unix thing) does. Think of it as a local DNS.
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 03:56.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App