Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

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…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

860 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