Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How to edit the Hosts file in 7

12 Sep 2009   #1

Windows 7
How to edit the Hosts file in 7

Hi people :)

I need help here, I have some older applications that wont work unless i change their 'update ip', (dont know what its called), in the hosts file.

I have found numerous ideas on how to edit in the hosts file, but none of them has worked so far.

When I run Notepad as administrator, and from there > Open > Browse to 'C:\Windows\System32\drivers\etc\hosts' it only open a sample of the 'hosts' file. It wont let me open the real file for some reason. I am logged in as admin and additionally I run Notepad as admin too - Which should let me do what ever I want, - Right?

I have already read and tried these 'solutions' but none of them worked:

Edit hosts file in Windows 7 & Windows Vista | Windows Reference

How to: Edit Hosts File in Windows 7 | COMPUTELOGY - Tech, Tips n Reviews on Windows Linux Mac

Is there a work-around to this?

NB: I am using an OEM (dell) version of Win7

My System SpecsSystem Spec
12 Sep 2009   #2

64-bit Windows 8.1 Pro

You need to Take Ownership of the host file... See Brinks tutorial --==> Here

Also see this .... Hosts File : Use in Windows 7 / Vista
My System SpecsSystem Spec
12 Sep 2009   #3


If you open the hosts file in the default location, and there is nothing in there....

then the instructions are lying to you and you need to find out where the IP is really being stored.

One thing - how long ago did the IP change? If recently, entering the command
ipconfig /flushdns
may help resolve this issue.
My System SpecsSystem Spec

12 Sep 2009   #4

Windows 10 Pro (x64)

What I do, drag a copy of the host file to my desktop, edit that, then drag the copy back to the rightful location. Done deal.
My System SpecsSystem Spec
12 Sep 2009   #5


@Tews - I just edited my hosts file without taking ownership - only ran Notepad as admin just as the OP stated.
My System SpecsSystem Spec
12 Sep 2009   #6


Quote   Quote: Originally Posted by johngalt View Post
@Tews - I just edited my hosts file without taking ownership - only ran Notepad as admin just as the OP stated.

You must of changed something, by default you need to take ownership.
My System SpecsSystem Spec
12 Sep 2009   #7

Windows 7

Just tried out the 'Take Ownership', but as you see in the link below, it didnt work: | Vis upload sniped1.PNG

I got this Dell laptop only days ago and reinstalled this OEM of Win7 yesterday. The applications I want to use are really old, but I have some old files that I need to open with them. - I dont think I know exactly what you mean by 'how long ago did the IP change?' or what the command might do for me, - I still need to change the app 'update IP' to another, otherwise everytime I open the application it wont let me continue. :S I used to be able to do this in XP and Vista, but in 7 it seems the hosts file is totally locked somehow?

I've already tried that, but you see - the hosts file that I copy still only shows as a sample no matter where I take it. Editing the sample wont do me anything I'm afraid :)
My System SpecsSystem Spec
12 Sep 2009   #8

Windows 7

Here's a bigger picture for you :) | Vis upload sniped1.PNG
My System SpecsSystem Spec
12 Sep 2009   #9

Windows 7

Just did a search for more entries of a/the hosts file in 7, and this came up - | Vis upload sniped2.PNG

Do you think that any of the 2 other instances are the 'right' hosts file?
My System SpecsSystem Spec
12 Sep 2009   #10
Orbital Shark


C:\Windows\System32\Drivers\ETC\Hosts should be the default & correct location for the host file

I've just copied the file to Documents and opened it directly from there, no admin privliges needed. You should be able to edit it, save it, then copy it back to it original home. You will need to confirm a UAC notification....
My System SpecsSystem Spec

 How to edit the Hosts file in 7

Thread Tools

Similar help and support threads
Thread Forum
Can't Edit Hosts File
I'm unable to edit my Hosts file located in C:\Windows\System32\drivers\etc folder. I am using Notepad by opening it via "Run as Administrator." Also, I have changed to properties of Hosts to allow it's modification. For some reason the "Special Permissions" box is ghosted out and not...
General Discussion
Unable to edit hosts file
Hello, I have a laptop that it doesn't allow me to edit hosts file. I tried many ways first I tried to give myself permissions in properties - edit but it gave me 'access denied' when trying to apply.. And I tried a method I found on google is to open a notepad with administration then open the...
General Discussion
When edit hosts file, it will reload with the default value.
Hi All, When I edited the file hosts in the etc folder, its saved successfully, but after 10 seconds, it will revert to default value. Any additional value will be removed. I already tried make it read-only, change owner, disable AV, disable Windows Firewall, disable UAC. any help will be...
System Security
Hosts file ignored and replaced with hosts.original
Hello. I am trying to use the hosts file. However both pings and web addresses still bypass the hosts file. I noticed that there is another file in the C:\Windows\System32\drivers\etc directory called 'hosts.original'. When ever I delete this file, it reappears seconds later. I have made sure that...
General Discussion
HOSTS File - Create a "Edit HOSTS file" Shortcut
How to Create a "Edit HOSTS file" Shortcut in Windows 7 and Vista The HOSTS file is a .txt file used in Vista and Windows 7 to map hostnames to IP addresses. Your computer checks this file first to resolve any network names to its corresponding IP address before it tries to check the Internet....

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:42.
Twitter Facebook Google+