Localhost not working

DeWire

New member
Local time
2:21 PM
Messages
19
Location
Ireland
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 Computer

OS
Windows 7
Open C:\Windows\system32\drivers\etc\host what does it say?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
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 Computer

OS
Windows 7
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 Computer

Computer Manufacturer/Model Number
Gateway, Toshiba Laptop, and Home Brew
OS
Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
CPU
Intel I3, Cerelon, Pentium 4 @ 3Ghz
Motherboard
Intel, Intel, Asus
Memory
8G, 3G, 3G
Graphics Card(s)
On-board Intel, On-board nVidia, nVIDIA card
Sound Card
on-board, on-board, SoundBlaster
Monitor(s) Displays
Hannspree HF237, Toshiba, SyncMaster 931B
Screen Resolution
default (all)
Hard Drives
1T internal, 320G internal, 160G internal, 1T networked
PSU
300w, unk, 650w
Case
black, black, grey
Cooling
air (all)
Keyboard
standard wired (all)
Mouse
standard wired (all)
Internet Speed
6M down, 768K up
Other Info
Home LAN through Linksys hub to 4 port and wireless switch/router. Networked HP 2600n. Wife's computer running Windows 7, and spare laptop running Ubuntu "Karmic Kola" (9.10).
I forgot "s" at the end of host... C:\Windows\System32\drivers\etc\hosts
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
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 Computer

OS
Windows 7
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 Computer

OS
Windows 7
"hosts" is a text file, so you should be able to open it with notepad.
 

My Computer

Computer Manufacturer/Model Number
Gateway, Toshiba Laptop, and Home Brew
OS
Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
CPU
Intel I3, Cerelon, Pentium 4 @ 3Ghz
Motherboard
Intel, Intel, Asus
Memory
8G, 3G, 3G
Graphics Card(s)
On-board Intel, On-board nVidia, nVIDIA card
Sound Card
on-board, on-board, SoundBlaster
Monitor(s) Displays
Hannspree HF237, Toshiba, SyncMaster 931B
Screen Resolution
default (all)
Hard Drives
1T internal, 320G internal, 160G internal, 1T networked
PSU
300w, unk, 650w
Case
black, black, grey
Cooling
air (all)
Keyboard
standard wired (all)
Mouse
standard wired (all)
Internet Speed
6M down, 768K up
Other Info
Home LAN through Linksys hub to 4 port and wireless switch/router. Networked HP 2600n. Wife's computer running Windows 7, and spare laptop running Ubuntu "Karmic Kola" (9.10).
"hosts" is a text file, so you should be able to open it with notepad.

Thanks for that :)

hosts.text file said:
# 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 Computer

OS
Windows 7

My Computer

Computer Manufacturer/Model Number
Gateway, Toshiba Laptop, and Home Brew
OS
Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
CPU
Intel I3, Cerelon, Pentium 4 @ 3Ghz
Motherboard
Intel, Intel, Asus
Memory
8G, 3G, 3G
Graphics Card(s)
On-board Intel, On-board nVidia, nVIDIA card
Sound Card
on-board, on-board, SoundBlaster
Monitor(s) Displays
Hannspree HF237, Toshiba, SyncMaster 931B
Screen Resolution
default (all)
Hard Drives
1T internal, 320G internal, 160G internal, 1T networked
PSU
300w, unk, 650w
Case
black, black, grey
Cooling
air (all)
Keyboard
standard wired (all)
Mouse
standard wired (all)
Internet Speed
6M down, 768K up
Other Info
Home LAN through Linksys hub to 4 port and wireless switch/router. Networked HP 2600n. Wife's computer running Windows 7, and spare laptop running Ubuntu "Karmic Kola" (9.10).
localhost name resolution is handled within DNS itself.

Out of range for me too, but I know what the foregoing line means.
 
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 Computer

OS
Windows 7
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 Computer

Computer Manufacturer/Model Number
Multiple machines in various stages of decomposition.
OS
Win7x64
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/uploads/2009/10/cmd_screenshot.png

Thanks,
Dave
 

My Computer

OS
Windows 7
Is Apache running?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
@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 Computer

OS
Windows 7
"hosts" is a text file, so you should be able to open it with notepad.

Thanks for that :)

hosts.text file said:
# 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 Computer

OS
win 7
Back
Top