1. Find out which ip you would like to have a name for. It could be a website, a place on your network or anything else that got an ip-number. The localhost uses the ip 127.0.0.1. To find out a website's ip just type "ping www.website.com" (without the "")in the command prompt (start>run>cmd.exe).
2. Browse to WINDOWS\system32\drivers\etc. Open the file called hosts in notepad.
3. Below "127.0.0.1 localhost" type the ip followed by a name. Read in the file itself for more information.
4. If you for example type 18.104.22.168 search (the ip belongs to www.google.com) and saves the file, you will end up on google's site if you type search in the adress bar in your Internet Browser.