How to Redirect an IP Address Using a Host File


The Hosts file on your Windows computer is a powerful administrative file used in networking. Before your computer checks with the Domain Name Server (DNS), it checks to see if any special instructions are in in the hosts file to direct the web address elsewhere. Using the hosts file is useful if you need to redirect a specific website to another, such as directing an ad website to something you don't mind navigating to, such as a search engine.

  • Open your Hosts file located at "C:\Windows\System32\Drivers\Etc" with a plain text editor such as NotePad.

  • Type the IP address you want to redirect to in the format of "x.x.x.x" where x is equal to any number from one to 255.

  • Press the spacebar and type the address you want to redirect from. If you want to redirect a gaming site such as "" because someone is playing games instead of working, you might enter "," which will redirect the site to your localhost.

Related Searches


Promoted By Zergnet


Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!