PDA

View Full Version : [ubuntu] Localhost is not working without internet connection



dpacmittal
April 17th, 2010, 12:57 PM
I've recently noticed that my localhost stops working when internet connection is disconnected. I use pon and poff to connect and disconnect my internet.

When I ping 127.0.0.1 or localhost, it is successful. However, http://localhost/ and http://127.0.0.1/ gives a Could not reach server error. I've tried restarting the apache and checked its config files for any errors.

I've also checked my /etc/hosts file but it is fine.

I don't know in which direction I should go further to resolve this issue. Any help would be appreciated.

EDIT: Apache/2.2.12 (Ubuntu)
Ubuntu 9.10 Karmic
Kernel: 2.6.31-20-generic

gmargo
April 17th, 2010, 03:15 PM
Is apache really listening on localhost port 80? Test with "telnet localhost 80" and "sudo lsof -i :80".

Could also be a routing table issue. "netstat -rn" to dump the routing table.

dpacmittal
April 17th, 2010, 03:28 PM
Okay, just after trying another browser, I found that it works on Firefox and Opera. This is a problem just with chrome.

Thanks for help.

dpacmittal
April 17th, 2010, 03:40 PM
Found an issue reported about the same here:
http://code.google.com/p/chromium/issues/detail?id=8910