Solved

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

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

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). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now