How to Locate and Edit Hosts File on Windows
Meet Bhaskar, your friendly neighborhood tech enthusiast-turned-wordsmith. For the past few years, he’s been your go-to guide for demystifying iOS, Android, macOS, and Windows platforms. While he holds a B.Tech degree, he has dedicated himself to simplifying tech complexities for all and has lent his expertise to publications like iGeeksBlog, The Writing Paradigm, and more. His forte lies in crafting easy-to-follow how-to guides and in-depth articles, making the intricate world of technology accessible to all. When not immersed in the tech world, you’ll find him enjoying music or sports.
Afam has been a content writer with Guiding Tech Media since August 2023. However, his experience in tech writing dates back to 2018, when he worked as a freelance writer for Make Tech Easier. Over the years, he has grown a reputation for publishing quality guides, reviews, tips, and explainer articles. His work is featured on top websites, including Technical Ustad, Windows Report, and Next of Windows. He has training as a Microsoft Certified Professional and has covered more Microsoft-related guides on these platforms.
Where Is the Hosts File Located in Windows
The host files are stored locally on your computer within the C drive. To locate the path, follow the steps below.
Step 1:Press theWindows+Skey on your keyboard. TypeThis PCand clickOpen.
Step 2:Double-click onLocal Disk C.
Step 3:Navigate to theWindowsfolder.
Step 4:Scroll down and open theSystem32folder.
Step 5:Search for thedriversfolder and open it.
Step 6:Double-click on theetcfolder.
Step 7:Now, you can see yourhostsfiles.
Alternatively, you can also openThis PCand paste the following in the address bar:
Note that you may have tomake hidden foldersvisible to see the hosts file.
How to Edit Hosts File in Windows
Editing the hosts file in Windows is a straightforward process. To get started, you’ll need atext editor, and Windows conveniently includes Notepad as the default option. To modify the hosts file, follow these steps:
Step 1:Click theWindowsicon and select the search box. EnterNotepad, right-click the app, and clickRun as administrator. SelectYeswhen prompted.
Step 2:ClickFileand chooseOpenfrom the drop-down menu.
Tip:You can also pressCtrl+Oto launch the Open menu directly.
Step 3:Paste the following in the address bar.
Note:Switch the file type toAll filesinstead of.txt, the default file type.
Step 4:Select thehostsfile and clickOpen.
Step 5:Now, you can edit the host file. Once edited, clickFileand chooseSave.
Also Read:How to fix Notepad not opening
Was this helpful?
Last updated on 10 July, 2024
Leave a ReplyCancel reply
Your email address will not be published.Required fields are marked*
Name*
Email*
Comment*
Δ
Read Next
The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.
More in Windows
3 Fixes for Display Connection Might Be Limited Error on Windows
4 Ways to Fix Upload Pending Error on Microsoft Word
JOIN THE NEWSLETTER
Get Guiding Tech articles delivered to your inbox.
© 2024 Guiding Tech Media. All Rights Reserved.