logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Cannot connect to local server UNLESS connected to LAN.
Author
labman



Joined: 09 Aug 2008
Posts: 1

PostPosted: Sat 09 Aug '08 23:36    Post subject: Cannot connect to local server UNLESS connected to LAN. Reply with quote

I'm running Apache (and pHp, mySQL) on a Win XP laptop as a development and demo server.

The site I'm working on is rerouted to the corresponding local site via a hosts entry: 127.0.0.1 www.sitenamehere.com

When Apache is running AND the laptop is connected to the internet, the browser connects to the local site (as it should).

When Apache is running and the laptop is NOT connected to the internet, the local site is not found. However, it connects when navigating to localhost instead of www.sitenamehere.com.

I'm puzzled why the LAN connection state should play any role at all when connecting to the local server from the local machine (same box). I've tried with the DNS service enabled and disabled, with Zonealarm running and not running and flushing the cache every time.

It appears that somehow the hosts lookup is not taken place when not connected to the LAN.

In Zonealarm 127.0.0.1 is a trusted IP (loopback adapter).

Any suggestion would be greatly appreciated.

Roger
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Mon 11 Aug '08 7:23    Post subject: Reply with quote

oops .. deleted
Back to top


Reply to topic   Topic: Cannot connect to local server UNLESS connected to LAN. View previous topic :: View next topic
Post new topic   Forum Index -> Apache