[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2006-06-15
4
Medium Priority
?
230 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 1000 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…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month20 days, 14 hours left to enroll

810 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