Tip of the day #1: Use you own localhost alias

Here’s a little tip from me today: If you are a developer running Windows XP and find yourself typing “localhost” in your browser about twenty times a day, you maybe want to use something shorter or easier to type.

For example: you want to type “home” or “go” instead of “localhost”. Here’s what you need to do:

  • Go to C:\WINDOWS\system32\drivers\etc (or wherever is your Windows installed)
  • Open the file labeled “hosts” with your favourite text editor and duplicate the line 127.0.0.1  localhost (just for any case).
  • Now change the new line’s “localhost” to whatever you wish and save.

You could also use this to prevent any desktop application from connecting to its server - it will just direct it to your localhost.