gnawz Posted September 12, 2008 Share Posted September 12, 2008 Hi Anyone can tell me why Apache does not work when I disable my internet? I mean when I type http://locahlhost/myfile.. to view my php program it says it is offline and will only work when I have Internet (When I enable the Internet) Quote Link to comment Share on other sites More sharing options...
budimir Posted September 12, 2008 Share Posted September 12, 2008 Try only http://localhost and see what happens. It doesn'e matter if Internet is enabled or not. It's working on local computer only! Quote Link to comment Share on other sites More sharing options...
Adam Posted September 12, 2008 Share Posted September 12, 2008 From what I understand of servers, and i may very well be wrong, but to communicate with a server (or web server) you need to use TCP/IP protocols. Perhaps if you have the internet disabled you're also disabling the TCP/IP protocol, which then prevents you from communicating with the web server? Someone tell me if im wrong? Adam Quote Link to comment Share on other sites More sharing options...
gnawz Posted September 12, 2008 Author Share Posted September 12, 2008 Even when I try http://localhost It won't work. It only does when my Internet connection is on. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 12, 2008 Share Posted September 12, 2008 Seems your browser is switching to its "off-line" state when it detects no internet connection. When you're not connected to the net go to the File menu and uncheck Work Offline if its selected and try accessing http://localhost NOTE: If you're using IE7+ you'll need to hold the Alt key down to see the toolbar menu Access to localhost or 127.0.0.1 does not require any internet connection at all. The problem you're having is to do with your browsers configuration. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.