The hosts file in Microsoft Windows can be used to define an IP (Internet Protocol Address) to a friendly name such as www.brighthub.com. Having this information in the hosts file makes your connection faster and more efficient. While it is not practical to enter every website into the hosts file, frequently used websites can be entered for this faster resolution method. Below is an example of your hosts file's last lines. 127.0.0.1 is the loopback address for your computer on IPv4 and ::1 is the loopback address for your computer on IPv6.
# 102.54.94.97 rhino.acme.com
# 38.25.63.10 x.acme.com
# x client host
127.0.0.1 localhost
::1 localhost
If you wish to connect to a website you can type in the IP address of the website, hit the space bar approximately five times and enter the web address.
If you don't know the IP address, ping the website to get the web address.
You can also use nslookup www.yourwebsite.com to get all of the IP addresses. If you want an entry, click after the localhost and hit enter. On the next line, type the ip address and url:
127.0.0.1 localhost
::1 localhost
66.165.142.74 www.brighthub.com