logo_michael-thomas.jpg (3143 bytes)

localhost and 127.0.0.1

I'm not a network guru.  This is just my notes.  I have to test software running on web servers that run on my local machine.  Here are some notes.

General Information

bulletIf you have a web server loaded on your machine you should be able to access the web servers home page, unless it has been customized with the following: (all 3 ways are identical).
bullethttp://127.0.0.1
bullethttp://localhost
bullethttp://<yourmachinename>

Windows Configuration files

This info may help allow you to have access to your local machine via DNS.

bullet c:\winnt\system32\drivers\etc\HOSTS - Add an entry in this file.
127.0.0.1     localhost
bullet If you're using socks servers:
bulletIE - Tools, Internet Options, Connections, Lan Settings, Proxy Server's Advanced tab.  Add to the settings for "Don't use proxy server for addresses beginning" with:
localhost;127.0.0.1;
bulletNetscape - Edit, Preferences, Advanced, Proxies, Manual Proxy Configuration, Exceptions.  Add to the settings:
localhost,127.0.0.1
bullet c:\winnt\socks.cnf - you may have to do something with this file.
 

Web Servers

bulletMS IIS
bulletDefault hostname & port: http://localhost:80
bulletdefault root - c:\inetpub\wwwroot
bulletApache
bulletDefault hostname & port: http://localhost:80
bulletTomcat
bulletDefault hostname & port: http://localhost:8080
bulletDefault root - ...<varies with install>...\webapps
bulletiPlanet
bulletiWS Administration Server
bulletDefault hostname & port: http://localhost:8888
http://<machinename>:8888
bulletWeb Server
bulletDefault hostname & port: http://localhost:81
bulletdefault root - C:/iPlanet/Servers/docs
bulletJRE Directory: C:/iPlanet/Servers/bin/https/jre
bulletInstallation notes: http://docs.iplanet.com/docs/manuals/enterprise.html