The hosts file can be used to map IP addresses to host names. Each entry should be on an individual line with the IP address in the first column and the host name in the second (separated by at least one space). Lines can be commented by placing a # at the beginning. The hosts file can be find in C:\Windows\system32\drivers\etc. To see the effects of any changes, you'll need to restart or create new instances of the browser(s) or run the following from the command line:
Subsequent requests for http://test will then point to 127.0.0.1 (local).