You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Recent Posts
- Follow Me on Twitter!
- 30 MORE Awesome Open Source AS3 Libraries
- Silly Flasher, Intros are for Newbies
- 30+ “Must Try” Open Source
Actionscript 3 Libraries - 13 Excellent FREE Flex Skins
Categories
- Adobe AIR
- Adobe Fireworks
- Adobe Flash
- Adobe Flash Lite
- Adobe Flex
- Adobe Photoshop
- CodeIgniter
- Complete Randomness
- Contests
- Design Resources
- Dev Resources
- General
- Innovation
- Inspiration
- Javascript
- OSX
- Papervision3D
- PureMVC
- Rants
- Tutorials
- Workflow



Hosts File Trick
For those that don't know, your Window's "hosts" file can be used to map a domain name to an IP address to trick your browser into thinking routing requests for a particular domain to a different server.
This file is not typically needed in development, but if you ever need to map a domain to the IP address of a another server (i.e. a development server or QA server), then knowing how to edit this file may come in handy.
In Windows XP, this file is located here:
c:\windows\system32\drivers\etc\hostsThere are plenty of resources out there on how to edit this file, so I won't elaborate on that, but I wanted to point out a trick that is handy if you are editing this file on a regular basis.
Since the hosts file doesn't have a file extension, by default, you have to choose which program you would like to use to open it, when you double click on it. You can fix this annoying behavior by following these steps:
C:\WINDOWS\system32\notepad.exe 'c:\windows\system32\drivers\etc\hosts'That's it, now double click the icon and it will open your hosts file in notepad.