PDA

View Full Version : Localhost? with no ethernet connection?


magnet
2008-07-08, 06:03 AM CDT
Hi
I have a fresh install of FC 9 on my laptop. I want to open my browser and navigate to localhost or view a webpage i have running on my laptop. Apache is running etc etc.

With the ethernet cable plugged in and the interface getting a dhcp address it works fine.

With no cable and the ethernet port down, no luck... "offline mode"

I dont want to carry around an ethernet loopback to do dev work on web pages on my laptop at the coffee shop :-)

I am using "Network Manager"

Any ideas on how i can browse localhost with no eth?

hyperspace
2008-07-08, 07:14 AM CDT
What happens if you try 127.0.0.1?

juanfgs
2008-07-08, 08:42 AM CDT
Sorry for asking, but is your /etc/hosts file is properly configured? maybe you are mapping another IP (the one of your ethernet interface) than 127.0.0.1 to localhost.


Off-Topic: (I'm back :D )

Edit: if you want, you may paste your /etc/hosts file using the pastebin (http://fpaste.org/) .

magnet
2008-07-08, 05:26 PM CDT
So i looked at /etc/hosts.. all is well.. it lists 127.0.0.1 and the correct hostname and all that..

The problem ended up being "offline mode" in the firefox browser.

It seems as if the browser detects whether or not an ethernet port is up (how it knows or chooses which one is a mystery) and that throws it into online mode when it is started.. if the eth is down,, then it goes into offline mode.

to fix this.. click File-> and make sure there is no checkmark in "Work Offline"

Great .. wasted about 30 mins or so on that.

I wish there was a document that was distributed with FC .. maybe on the desktop.. that says.. "README FIRST" and that doc would list all the little nuances about FC's usability quirks.. and some basic how too's.. you know,all based on the frequency of specific problems that are brought up on this board.. how to get the broadcom wireless chipsets working, online/offline mode.. keyring manager etc etc etc.

a "Care and Feeding" guide for the average Joe.

I think "the community" should take a more active role in user interface and usability of the product.... yeah yeah, i know.. stop talking about it magnet and go do it.

juanfgs
2008-07-08, 06:56 PM CDT
I think "the community" should take a more active role in user interface and usability of the product.... yeah yeah, i know.. stop talking about it magnet and go do it.
So who is this "community" guy anyways?, I always thought we (users and contributors, ) were "the community", maybe I was wrong :S .
There are many sites from different countries that promote fedora, and many of them have wikis. Why can't we try to make some documentation about our own problems? maybe if you answer that question you will find out why no one else documented that problem either (lazyness, lack of time, or many more reasons).

magnet
2008-07-08, 07:55 PM CDT
True true.. every person who used FC is "The Community" .. and i as much as most other people haven't contributed enough.. maybe this is my chance.. or someone elses like me ...