Solved

When i'm online (on internet) localhost cannot be found

Posted on 2006-06-15
4
217 Views
Last Modified: 2010-03-04
Hi :)
So the problem is this: When i'm on the internet (no matter which network connection i use, it's the same with LAN, WLAN, dialup...) the http://localhost/ is not working, BUT http://127.0.0.1/ is working normally...
The situation is like this:
- When i ping localhost, it works.
- My hosts file is ok i.e. it contains exactly what it should: 127.0.0.1 localhost
- I have no proxies configured
- I get the same behaviour in all browsers

Yuk! :)
Now, this maybe also an important information, though it says nothing: my localhost was working fine, until one day... I wasn't been making any changes or installing something new, it just happened...

Also, i'm "clean" on viruses and spyware...

Any idea? :)

Thanks
0
Comment
Question by:vukotic
  • 2
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
smidgie82 earned 250 total points
ID: 16913442
My first thought is that your http.conf got changed somehow.  If ping resolves localhost correctly, the browser ought to as well.  Try accessing your server from another device on the network by ip address, and see what happens there.  Also, try using "wget http://localhost/" and see if you get an error.  Also, maybe somehow your loopback device got disabled.  Have you tried "ifconfig lo up" ?
0
 

Author Comment

by:vukotic
ID: 16918233
Thanks, Smidgie, but (oops! :))i forgot to mention that i'm using windows...
Also, i didn't explain one more thing correctly, the pinging: if i ping it as 'localhost' i get "no reply", it works only when i ping 127.0.0.1

Thanks
0
 

Author Comment

by:vukotic
ID: 16919546
Well, Smidgie gave me the hint i.e. the keyword "loopback", so i'm giving him the points.

Finally, it turned out that, after i uninstalled the ipv6, everything works fine... Don't ask me why :)
So, the solution to this problem was to type 'ipv6 uninstall' in the command prompt.

Best wishes! :)
0
 
LVL 9

Expert Comment

by:smidgie82
ID: 16920210
Oops...  I forgot Windows has a hosts file, too.  Doh!

Thanks for the points, and good job on the fix!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question