Localhost not working

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 4,573
       #11

    localhost name resolution is handled within DNS itself.

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


  2. Posts : 19
    Windows 7
    Thread Starter
       #12

    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


  3. Posts : 1,377
    Win7x64
       #13

    DeWire said:
    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


  4. Posts : 19
    Windows 7
    Thread Starter
       #14

    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 Computer


  5. Posts : 5,642
    Windows 10 Pro (x64)
       #15

    Is Apache running?
      My Computer


  6. Posts : 19
    Windows 7
    Thread Starter
       #16

    Got it to work from a USB key. Thanks guys
      My Computer


  7. Posts : 4,573
       #17

    A, b, c, d, r ?
      My Computer


  8. Posts : 4
    Windows 7
       #18

    @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


  9. Posts : 1
    win 7
       #19

    DeWire said:
    TheSchaft said:
    "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

  10.   My Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About 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 05:30.
Find Us