Bill - 
You're not doing anything wrong - I was able to reproduce your
error using MS Explorer, but OmniWeb resolved 'localhost' correctly.

Interestingly, when I have my TCP/IP configured for DHCP and I
get an IP when I'm connected to a LAN (as opposed to manual per
your situation), then MS Explorer resolves 'localhost'
correctly. So I'm guessing it's some sort of bug in explorer
that doesn't check the /etc/hosts file (using lookupd or
NetInfo, or however OS X does it) right away, but problably goes
straight for the router, which defaults to 0.0.0.0 when manual
IP is first selected.

BTW- the whole localhost thing should work independently of
whatever settings you have in the network control panel. If you
type 'ifconfig -a' at the command prompt, you will see that you
have a loopback network interface separate from your ether card.
And the /etc/hosts file points 'localhost' to 127.0.0.1, the
address of that loopback interface.

So what it boils down to is a bug in explorer?

---- On Fri, 06 Apr 2001, Bill Stephenson
([EMAIL PROTECTED]) wrote:

> I want to set up my iBook to let me develop perl/cgi apps and
then run
> them
> in a web browser without being connected to a network.
> 
> I've got this working by choosing:
> 
> System Preferences
> Network
> New Location (create a new location)
> Configure / Built-in Ethernet
> 
> TCP/IP (the tab)
> Configure / Manually
> 
> Save
> 
> Enter this address into the browser: 127.0.0.1
> and in works fine.
> 
> But when I enter this address into the browser: localhost
> it crashes the browser hard.
> 
> Am I doing this wrong, or should I just not enter that address?
> 
> Thanks,
> -- 
> 
> Bill Stephenson
> 


Reply via email to