CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: localhost

  1. #1
    Join Date
    Aug 2001
    Location
    Mumbai
    Posts
    30

    localhost

    Hi,
    In the browser when i enter localhost it gives error ,i have to enter full ip address to start home page or anything else.
    When i use localhost it gives error:
    ///////////////////////////
    HTTP 404 - File not found
    Internet Explorer
    ///////////////////////////
    Can anybody suggest on that




  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: localhost

    In the windows directory, there should be a file called hosts, just hosts no extension, if it isn't there, rename hosts.sam to hosts. Edit the file using notepad and at the bottom, add following line

    127.0.0.1 localhost

    where 127.0.0.1 is your IP address
    normally, 127.0.0.1 is always a valid IP address for your pc, since it is used for loopback.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Aug 2001
    Location
    Mumbai
    Posts
    30

    Re: localhost

    Hi,
    thanx for reply,
    i have two files on that location one is hosts and other is imhosts.sam,in hosts last line is
    127.0.01 localhost
    In imhosts.sam only comments are there.
    But still localhost is not working.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured