Solved

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

Posted on 2006-06-15
4
214 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 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