Tim Hibbard

Software Architect for EnGraph software
posts - 611, comments - 538, trackbacks - 469

My Links

News



Add to Google




Twitter












Tag Cloud

Article Categories

Archives

Post Categories

Image Galleries

EnGraph Blogs

Links

Other

Roll

Changing your hosts file in Vista

By default, if you try to modify your hosts file in Vista, it will not let you save it.  It tells you that you don't have permission.  To successfully modify the hosts file, run notepad.exe as an administrator and open the file.

1)  Browse to Start -> All Programs -> Accessories
2)  Right click "Notepad" and select "Run as administrator"
3)  Click "Continue" on the UAC prompt
4)  Click File -> Open
5)  Browse to "C:\Windows\System32\Drivers\etc"
6)  Change the file filter drop down box from "Text Documents (*.txt)" to "All Files (*.*)"
7)  Select "hosts" and click "Open"
8)  Make the needed changes and close Notepad.  Save when prompted.

Technorati tags: , ,

Print | posted on Wednesday, December 13, 2006 6:00 PM | Filed Under [ Vista ]

Feedback

Gravatar

# re: Changing your hosts file in Vista

Thank you! Thank you! Thank you!
I'm glad the security is tighter on the hosts file, but I couldn't find a solution until I found your post.
Now if I could only find a way (if at all) to customize my Explorer toolbar (like I used to be able to in XP). Any suggestions?
12/16/2006 5:29 AM | StuGazzO
Gravatar

# re: Changing your hosts file in Vista

Thank you!
12/25/2006 11:42 PM | Sercone
Gravatar

# re: Changing your hosts file in Vista

thanks alot
1/1/2007 5:39 AM | Henri
Gravatar

# re: Changing your hosts file in Vista

Tim does Vista read the entries in the host file, I added a couple of entries, but it looks like vista isnt picking them up. if i ping the entries i have added, it returns could not find host ...
1/2/2007 12:23 PM | Tariq
Gravatar

# re: Changing your hosts file in Vista

Update,
I figured it out, I was editing a copy of the hosts file in a separate directory (e.g. c:\temp) and the replacing the original with that and Vista wasn't picking up the entries (not sure why)

but if I follow the approach above and edit the origianl, it works fine.
1/2/2007 12:29 PM | Tariq
Gravatar

# re: Changing your hosts file in Vista

Thanks Tim.

The extra security in Vista is nice, but damned annoying when it makes every file Read Only and you can't change what you want.

Hey-ho.
1/3/2007 8:37 AM | Last.2.Know
Gravatar

# re: Changing your hosts file in Vista

Thanks Tim,

I haven't played with Vista yet but I know this info will help in the future
1/15/2007 4:12 PM | Curbob
Gravatar

# re: Changing your hosts file in Vista

Hey Tim! Thanks for the heads up! I've got a long way to go before we get reasonably proficient at this... phew...
1/21/2007 1:42 PM | Ashish
Gravatar

# re: Changing your hosts file in Vista

Thanks a lot
2/1/2007 2:15 AM | Ullas
Gravatar

# re: Changing your hosts file in Vista

Hi can someone copy and paste Vista's host file please?

I deleted mine+ lost tthe back up copy i had so I had to make a basic one to get back on the net.

Thanks
2/2/2007 5:41 PM | Viper
Gravatar

# re: Changing your hosts file in Vista

Viper - Here you go.

# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
::1 localhost
2/3/2007 1:28 AM | Tim Hibbard
Gravatar

# re: Changing your hosts file in Vista

Thank you very much
2/3/2007 2:06 PM | Viper
Gravatar

# re: Changing your hosts file in Vista

Hey guys, heres a better way.

Create a new short cut pointing to:

C:\Windows\System32\notepad.exe C:\Windows\System32\drivers\etc\hosts

Open the properties and click the Advanced button on the Shortcut tab and select Run As Administrator.

That's it, this will allow you to edit the file in place in notepad and open the hosts file automatically.
2/4/2007 4:11 PM | Jim
Gravatar

# re: Changing your hosts file in Vista

use spybot s&d to change hosts file
2/15/2007 5:44 PM | cartel
Gravatar

# re: Changing your hosts file in Vista

by the way, do I need the 2 entries that vista has default?
Will it hurt to remove them?

2/15/2007 5:51 PM | Cartel
Gravatar

# re: Changing your hosts file in Vista

Thanks Jim
2/18/2007 8:39 PM | Nick
Gravatar

# re: Changing your hosts file in Vista

Thanks Tim. This was a big help.
2/19/2007 5:19 AM | Mahomed
Gravatar

# re: Changing your hosts file in Vista

MS page on how to modify hosts http://support.microsoft.com/kb/923947
2/20/2007 6:16 AM | Jonathan
Gravatar

# re: Changing your hosts file in Vista

127.0.0.1 serial.alcohol-soft.com # alcohol 120%
127.0.0.1 alcohol-soft.com # alcohol 120%
127.0.0.1 images.alcohol-soft.com # alcohol 120%
127.0.0.1 mermaidconsulting.dk # alcohol 120%
4/1/2007 9:14 AM | jo
Gravatar

# re: Changing your hosts file in Vista

Thanks. You saved my time!
4/11/2007 2:21 AM | Gergana Krumova
Gravatar

# re: Changing your hosts file in Vista

Thanks a million. Your way of editing the hostfile is much easier for me.
4/12/2007 2:09 AM | obi
Gravatar

# re: Changing your hosts file in Vista

This could be used to block someone from accessing the router. If that person keeps going into it to mess with the settings and change the password.

127.0.0.1 192.168.1.1
5/7/2007 11:14 AM | Your Momma
Gravatar

# re: Changing your hosts file in Vista

Also use this to block that annoying myspace.

127.0.0.1 www.myspace.com
5/7/2007 11:16 AM | Your Momma
Gravatar

# re: Changing your hosts file in Vista

Also I want to block the ms updates. Does anyone know the servers they use? Something like update.microsoft.com?
5/7/2007 11:17 AM | Your Momma
Gravatar

# re: Changing your hosts file in Vista

I will try the host file edit solution and am sure it will work. Thanks for smoothening the rough ride.
5/8/2007 7:11 AM | Ahmmad
Gravatar

# re: Changing your hosts file in Vista

I am logged in as Administrator, but everytime I try to save the Hosts file, the system tells me that I do not have permission because I am not an administrator.

What more can I do?
6/18/2007 4:34 PM | dan pincu
Gravatar

# re: Changing your hosts file in Vista

Thank You!
6/24/2007 2:26 PM | Tom Perry
Gravatar

# re: Changing your hosts file in Vista

Thanks!!! Just spent a lot of time trying to figure this out.
7/4/2007 3:01 AM | Nelson Cysneros
Gravatar

# re: Changing your hosts file in Vista

Really annoying, even if you log into an administrator account you have to run Notepad explicitly as administrator. It seems it runs with lower privileges otherwise. Don't ask me...

Thanks for the link to the MS page too, would've looked forever without that! Tight security is good and all, but that's just annoying.
7/15/2007 1:31 PM | Guido
Gravatar

# re: Changing your hosts file in Vista

Thanks a lot. This helped me lot
7/21/2007 10:44 PM | Raghu
Gravatar

# re: Changing your hosts file in Vista

You guys are legends than
8/9/2007 7:16 AM | Diablos
Gravatar

# re: Changing your hosts file in Vista

I'm having a different problem after recenty security (pre-SP1) updates... I can ping the server I have put in the HOSTS file, but when trying to access it by "cd \\server", this times out... when I do "cd \\212.222.111.33" , it works..

HOSTS file:

127.0.0.1 localhost
::1 localhost
212.222.111.33 server

PS: server is accessible via Hamachi.. really, really strange.. it seems they cannot do anything right.. Vista connectivity is really shitty (dropping the connection etc.) - but that's different story
8/14/2007 5:21 AM | david
Gravatar

# re: Changing your hosts file in Vista

Thank you for posting this. So helpful!
8/16/2007 8:57 AM | Nick
Gravatar

# re: Changing your hosts file in Vista

I'm seeing an even odder problem, relating to the hosts file. Maybe this is some 64bit issue, but I don't have a hosts file!
Don't even have a "etc" folder, all I have in C:\Windows\system32\drivers\ is
en-US,
UMDF

Anyone come across this?
8/21/2007 9:15 AM | Stee
Gravatar

# re: Changing your hosts file in Vista

"I'm seeing an even odder problem, relating to the hosts file. Maybe this is some 64bit issue, but I don't have a hosts file!
Don't even have a "etc" folder, all I have in C:\Windows\system32\drivers\ is
en-US,"

This happened to me when I was running a third party file explorer.
8/30/2007 3:48 PM | Lance
Gravatar

# re: Changing your hosts file in Vista

Ok ok lets stop talking about this and look on about puberty
9/9/2007 4:40 AM | Admin
Gravatar

# re: Changing your hosts file in Vista

Hey Tim, Thank you for the post.
10/8/2007 2:50 PM | meena
Gravatar

# re: Changing your hosts file in Vista

Thanks! Right on the money.
10/14/2007 1:46 AM | gnedel
Gravatar

# re: Changing your hosts file in Vista

i get this when i run the search for host on vista in Imhost?
#
# This is a sample LMHOSTS file used by the Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to computernames
# (NetBIOS) names. Each entry should be kept on an individual line.
# The IP address should be placed in the first column followed by the
# corresponding computername. The address and the computername
# should be separated by at least one space or tab. The "#" character
# is generally used to denote the start of a comment (see the exceptions
# below).
#
# This file is compatible with Microsoft LAN Manager 2.x TCP/IP lmhosts
# files and offers the following extensions:
#
# #PRE
# #DOM:<domain>
# #INCLUDE <filename>
# #BEGIN_ALTERNATE
# #END_ALTERNATE
# \0xnn (non-printing character support)
#
# Following any entry in the file with the characters "#PRE" will cause
# the entry to be preloaded into the name cache. By default, entries are
# not preloaded, but are parsed only after dynamic name resolution fails.
#
# Following an entry with the "#DOM:<domain>" tag will associate the
# entry with the domain specified by <domain>. This affects how the
# browser and logon services behave in TCP/IP environments. To preload
# the host name associated with #DOM entry, it is necessary to also add a
# #PRE to the line. The <domain> is always preloaded although it will not
# be shown when the name cache is viewed.
#
# Specifying "#INCLUDE <filename>" will force the RFC NetBIOS (NBT)
# software to seek the specified <filename> and parse it as if it were
# local. <filename> is generally a UNC-based name, allowing a
# centralized lmhosts file to be maintained on a server.
# It is ALWAYS necessary to provide a mapping for the IP address of the
# server prior to the #INCLUDE. This mapping must use the #PRE directive.
# In addtion the share "public" in the example below must be in the
# LanManServer list of "NullSessionShares" in order for client machines to
# be able to read the lmhosts file successfully. This key is under
# \machine\system\currentcontrolset\services\lanmanserver\parameters\nullsessionshares
# in the registry. Simply add "public" to the list found there.
#
# The #BEGIN_ and #END_ALTERNATE keywords allow multiple #INCLUDE
# statements to be grouped together. Any single successful include
# will cause the group to succeed.
#
# Finally, non-printing characters can be embedded in mappings by
# first surrounding the NetBIOS name in quotations, then using the
# \0xnn notation to specify a hex value for a non-printing character.
#
# The following example illustrates all of these extensions:
#
# 102.54.94.97 rhino #PRE #DOM:networking #net group's DC
# 102.54.94.102 "appname \0x14" #special app server
# 102.54.94.123 popular #PRE #source server
# 102.54.94.117 localsrv #PRE #needed for the include
#
# #BEGIN_ALTERNATE
# #INCLUDE \\localsrv\public\lmhosts
# #INCLUDE \\rhino\public\lmhosts
# #END_ALTERNATE
#
# In the above example, the "appname" server contains a special
# character in its name, the "popular" and "localsrv" server names are
# preloaded, and the "rhino" server name is specified so it can be used
# to later #INCLUDE a centrally maintained lmhosts file if the "localsrv"
# system is unavailable.
#
# Note that the whole file is parsed including comments on each lookup,
# so keeping the number of comments to a minimum will improve performance.
# Therefore it is not advisable to simply add lmhosts file entries onto the



but if i add the lines to log onto the private Lineage 2 server it wont work? I am using the notepad as admin, and get no error message when i make the change and save. I saw a copy of what is supose to be the vista host here in these posts yet mine looks total different?
Help please...
10/18/2007 6:15 PM | RandyR
Gravatar

# re: Changing your hosts file in Vista

Thanks man!
10/20/2007 11:54 AM | Scott
Gravatar

# re: Changing your hosts file in Vista

thank you very much that was very helpful.
10/23/2007 11:13 PM | anton
Gravatar

# re: Changing your hosts file in Vista

Thanks for the helpful advise! Greatly appreciated.
11/28/2007 7:11 AM | Aart
Gravatar

# Changing your hosts file in Vista

is there a command i can type in 'run' (winkey + r) that opens it in notepad like: open C:\Windows\System32\Drivers\etc -notepad' or summin like that?
12/17/2007 2:27 PM | Changing your hosts file in Vist
Gravatar

# re: Changing your hosts file in Vista

Hi can anybody help me i am having problem with signing in to Live Messenger and the only reason is related to the host file that i have PLSSS help me cause eventhough i re-instal the program it still doesn't work
1/20/2008 8:03 AM | Steven
Gravatar

# re: Changing your hosts file in Vista

10X 10X
LISA
2/10/2008 5:16 PM | repair
Gravatar

# re: Changing your hosts file in Vista

nice post
lisa
2/15/2008 8:32 PM | youtube-novela-acorralada
Gravatar

# re: Changing your hosts file in Vista

Thank you, Man. You saved my day.

PS. I hate Vista.
2/27/2008 12:42 PM | Danylo
Gravatar

# re: Changing your hosts file in Vista

Obrigado (I mean thanks).
3/2/2008 8:16 AM | Bueno
Gravatar

# re: Changing your hosts file in Vista

Hi,

First result in Google, direct solution. Thank you very much.

http://www.unofficialmac.com
3/17/2008 8:31 AM | Alpay
Gravatar

# re: Changing your hosts file in Vista

I just wanted to say thank you. I have been going crazy trying to access a blocked website and tried everything I could think of! Your instructions were simple to follow (even for a computer novice like me)and worked :0)

THANK YOU!
4/3/2008 5:37 AM | Natalie
Gravatar

# re: Changing your hosts file in Vista

THANK YOU!!!

Seriously, Easy instructions, I managed to do what I needed to get on a site I couldn't (for some reason)

Thanks!
5/5/2008 4:55 PM | Hayley
Gravatar

# re: Changing your hosts file in Vista

Simple and clear steps to get to a solution... That's the way I like it yeaaah ;-)
5/16/2008 3:40 PM | Douane
Gravatar

# re: Changing your hosts file in Vista

RandyR, are you some type of moron? It states HOSTS file. Who the hell said lmhosts? Why not look for idiotichosts while you're at it?

5/18/2008 2:09 AM | Slime
Gravatar

# re: Changing your hosts file in Vista

Too bad Vista is still so expensive, I can't afford it :-(
5/22/2008 5:41 AM | Kantoormeubilair
Gravatar

# re: Changing your hosts file in Vista

Thanks Tim! This saved a lot of time.
5/23/2008 2:17 PM | Jermaine
Gravatar

# re: Changing your hosts file in Vista

Question: I modified my hosts file in Vista and it works fine (blocks the sites I want to block) when I am logged in as the administrator. However, when I am logged in as a user, I still have access to the sites I am trying to block. Any idea what's going on here? Do users have separate hosts files in Vista?

I've already flushed my DNS. To make sure it wasn't a DNS issue, I also put some url's that I've never accessed before into the hosts file . Sure enough, when I'm logged in as a user, I can still access those sites.
5/27/2008 9:27 PM | Bob
Gravatar

# re: Changing your hosts file in Vista

Nice info, thanks!
6/12/2008 8:24 PM | Alice
Gravatar

# re: Changing your hosts file in Vista

Thanks - that was giving me a headache. I guess these vista security features are a necessary evil.
6/23/2008 8:46 AM | Adam
Gravatar

# re: Changing your hosts file in Vista

How can I use this to host games (for example on wc3)?
7/13/2008 4:50 PM | a
Gravatar

# re: Changing your hosts file in Vista

Dude, thx a gadzilion times!!!!
8/5/2008 4:09 AM | Tomaz
Gravatar

# re: Changing your hosts file in Vista

I can open the host but I do now have permission to save it. I could delete it but now I can't same a new one. Any ideas?
8/6/2008 6:01 AM | Smeden
Gravatar

# re: Changing your hosts file in Vista

TIMMAH,

Thanks for the fix. You is DA MAN.

-Joe
http://sadsteve.com - the music search engine created by angry youths ;-)
8/18/2008 5:22 PM | Joe
Gravatar

# re: Changing your hosts file in Vista

"when every body learn how the hell XP works its the time to change everything and get everybody lost!... "
By Vista...
9/8/2008 2:40 PM | marco
Gravatar

# re: Changing your hosts file in Vista

Cheers for this!
9/22/2008 7:56 AM | J Santo
Gravatar

# re: Changing your hosts file in Vista

ur AWESOME....thank you, forgot the run as admin....
9/24/2008 8:37 PM | Melissa
Gravatar

# re: Changing your hosts file in Vista

Perfect! Tkz!
10/3/2008 2:43 AM | mufulone
Gravatar

# re: Changing your hosts file in Vista

Good. but i use the program to run it, also can not. have to manually change.

Thanks anyway.

10/4/2008 1:31 PM | happytony
Gravatar

# re: Changing your hosts file in Vista

For me it didn't want to accept the changes very well doing it that way. It was easier to do this:

Navigate to C:\Windows\System32\Drivers\etc

Move the hosts file on my desktop (It will ask for root password)

Right-click > Properties > Uncheck Read-only

Open in Notepad and make changes

Right-click > Properties > Re-check Read-only

Move the file back to C:\Windows\System32\Drivers\etc (You have to enter password again)

Your post was still a great help, I always forget where to find the hosts file so I refer here when I need to look for it.
10/8/2008 10:49 AM | Carl
Gravatar

# re: Changing your hosts file in Vista

Thank You so much!
Helped a lot!
:D:D:D
10/25/2008 1:53 PM | Gui
Gravatar

# re: Changing your hosts file in Vista

Thank you so much!! You really saved my day!!
Thanks again!!
10/27/2008 12:34 PM | Free recipes blog
Gravatar

# re: Changing your hosts file in Vista

You could just disable UAC.
11/1/2008 2:51 PM | Asdfg
Gravatar

# re: Changing your hosts file in Vista

Thanks lot , the way of changing file is easier...
11/19/2008 3:38 AM | Pranav
Gravatar

# re: Changing your hosts file in Vista

Thank you so much!
12/3/2008 5:48 AM | Ricky
Gravatar

# re: Changing your hosts file in Vista

thanks for the help :P
12/12/2008 7:16 AM | joaquin
Gravatar

# re: Changing your hosts file in Vista

thank you thank you thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
12/17/2008 3:44 PM | david
Gravatar

# re: Changing your hosts file in Vista

Your method didn't actually work for me :P

I just had to change the properties of the hosts file to not read only (uncheck the read only box) and then save over it. Opening it as the administrator didn't do jack..
12/19/2008 2:29 AM | COmplover
Gravatar

# re: Changing your hosts file in Vista

Thanks, that was very useful
12/20/2008 7:36 PM | noname
Gravatar

# re: Changing your hosts file in Vista

Thank You mate.
12/20/2008 10:26 PM | James
Gravatar

# re: Changing your hosts file in Vista

if your having problems finding the hosts file do:

A:

Create a new short cut pointing to:

C:\Windows\System32\notepad.exe C:\Windows\System32\drivers\etc\hosts

Open the properties and click the Advanced button on the Shortcut tab and select Run As Administrator.

Or

B:

right click notepad, Run as Administrator (even if logged in as Admin), and type/paste in the box:

C:\Windows\System32\drivers\etc\hosts
12/23/2008 6:21 PM | caset
Gravatar

# re: Changing your hosts file in Vista

Thanks a lot, it wouldnt work until i read ur post, God bless you
12/25/2008 2:43 AM | DMA
Gravatar

# play free online games


Create a new short cut pointing to:

C:\Windows\System32\notepad.exe C:\Windows\System32\drivers\etc\hosts

Open the properties and click the Advanced button on the Shortcut tab and select Run As Administrator.
1/1/2009 5:56 AM | online games
Gravatar

# re: Changing your hosts file in Vista

Thanks for this post.

For those that might be having problems seeing their change, try flushing your dns

"Run"

type- ipconfig/flushdns

When you clear your private data in your browser, you should see the change
1/29/2009 9:04 AM | Lee
Gravatar

# re: Changing your hosts file in Vista

Thanks ..!!!
1/30/2009 3:30 AM | bess
Gravatar

# re: Changing your hosts file in Vista

Thx bro.
1/31/2009 7:53 AM | alex
Gravatar

# re: Changing your hosts file in Vista

It didn't work for me :(

I made the changes to the hosts file and saved it, but I could still access all the sites I wanted to block. I use Firefox. Did anyone experience the same problem?
2/3/2009 9:03 AM | Taho
Gravatar

# re: Changing your hosts file in Vista

Wow unbelievable...!

Bundle of thanks. I saved and change hosts file in Vista. If you have more information like this function then show in your next post please.

Thanks again.
2/11/2009 5:31 AM | IT Certification
Gravatar

# re: Changing your hosts file in Vista

You're my hero, Tim!
2/13/2009 8:09 PM | Laurel
Gravatar

# re: Changing your hosts file in Vista

My problem is a little more complex maybe. I need to have a port forwarded to a different computer, say 192.168.2.33 and the port is 8767 for example. How to I enter this in the hosts file?


127.0.0.1 192.168.2.33:8767 #????????

Thanks for the guide!

Jason
2/18/2009 8:40 AM | jason
Gravatar

# re: Changing your hosts file in Vista

@jason
Port forwarding needs to be done in your router, not your hosts file.
2/18/2009 8:46 AM | Tim Hibbard
Gravatar

# re: Changing your hosts file in Vista

A little explination to help clear up my issue, since I so thoughtfully provided it above... sorry about that....:

I am using putty from behind an academic firewall that blocks me access from certain programs.

for example; xfire or TeamSpeak.

I use these to communicate with off campus students in groups that we have for classes here. I can successfully forward a port using putty through ssh, but I cannot get my hosts file to show this forwarding so that all I have to do is have my applications configured the same, but my windows box will automatically change the address from www.mynamehere.com to localhost or 127.0.0.1 with the correct port.

I know it can be done as I did it several months prior, just never wrote down the instructions nor the site I found them on.
2/18/2009 9:30 AM | Jason
Gravatar

# re: Changing your hosts file in Vista

I apologize for the double posts above. I am apparently impatient with the sebsite and how it updates, or just click happy...

Jason
2/18/2009 9:35 AM | jason
Gravatar

# re: Changing your hosts file in Vista

Thank you to the original poster.
2/20/2009 10:16 PM | justsomeguy
Gravatar

# re: Changing your hosts file in Vista

Thank you thats a great tricK!
2/21/2009 12:37 PM | Angel Grablev
Gravatar

# re: Changing your hosts file in Vista

Cheers, I had a stupid trojen that had left a trail, and coldnt' work out how to change it, sbybot wouldn't work, and I couldn't override the file, so cheers.
2/22/2009 10:23 PM | Simon
Gravatar

# re: Changing your hosts file in Vista

i kept getting a message that it couldn't find the path specified or something when i tried to save my changes. like "C:....etc/hosts file could not be found. Please check to see if the path is correct." So then I decided to spite notepad and tried opening it with wordpad instead. and... it worked perfectly. so. if y'all are having problems on vista with notepad, try wordpad.

btw, thanks for the post. great info and advice. =]
2/27/2009 5:18 PM | vicky
Gravatar

# re: Changing your hosts file in Vista

Even when I save my hosts file as **All Files** it's properties still attribute it to a txt. file. I've made changes to it that don't appear to have taken effect, so I assume this could be the reason. The file does not have a txt extension, but it appears as a text file anyways in the folder. I've ran notepad as administrator, and followed all the other advice given on this forum so far.

Does anyone have any suggestions for me?
Cheers.
3/1/2009 2:17 PM | Stephanie of Canada
Gravatar

# re: Changing your hosts file in Vista

Many Thanks -helps me to successfully change host file
3/3/2009 5:33 PM | adugna
Gravatar

# re: Changing your hosts file in Vista

Thank you much, Tim!
3/5/2009 5:14 PM | rook
Gravatar

# re: Changing your hosts file in Vista -BUT 64 BIT VERSION

Hi!

Nice all this, but:

HOW DO I Change in VISTA 64 bit ?????

There are two "hosts" files and in totally different folders.

e.g. "c:\Windows\winsxs\amd64_microsoft-windows-w..nfrastructure-other_31bf3856ad364e35_6.0.6000.16386_none_5e6cdbf5b2cd5bcb\"

There is no <etc> directory in the ..\system32\drivers\

The Problem is that the files are WRITE PROTECTED ... unchangeable .... nothing to do with User rights or UAC.
It's like the file is in use.

Any way to do entries there via a menu or option setting without editing the file by yourself ?
Any clue `?

Thx!
3/6/2009 4:30 AM | Jan
Gravatar

# re: Changing your hosts file in Vista

What do you know, not matter which version of Linux/Unix I use, the hosts file is in the same place, /etc/hosts

3/9/2009 11:55 AM | DoJo
Gravatar

# re: Changing your hosts file in Vista

Really useful tip! Started work today to find localhost not resolving. After tracking down the problem to the hosts file I struggled for 40 minutes to find a way to make changes in this file. Vista....sigh.

I can now get back to development. Cheers!
3/12/2009 12:08 PM | davemere
Gravatar

# re: Changing your hosts file in Vista

Great tip! Thanks much for the posting!
3/15/2009 3:17 PM | RR
Gravatar

# re: Changing your hosts file in Vista

Great job keep it up.
3/21/2009 6:49 AM | Gary Winnick
Gravatar

# re: Changing your hosts file in Vista

a windows vista update killed secureCRT's port forwarding, and it was the hosts file no longer specifying 127.0.0.1 to localhost.
Your instructions saved my a$$, thank you very much!
3/31/2009 3:54 PM | Simon
Gravatar

# re: Changing your hosts file in Vista

thank so much!!!!!!!!!!!!!!!
4/6/2009 10:07 PM | Rebeca
Gravatar

# re: Changing your hosts file in Vista

moglby to ktor przetlumaczyc na polski BLAGAM....
4/9/2009 4:38 PM | Krzysztof
Gravatar

# re: Changing your hosts file in Vista

Thanks lot
4/17/2009 12:39 AM | Gavad
Gravatar

# re: Changing your hosts file in Vista

THANK YOU so very very much!!!!!
4/29/2009 10:08 PM | gabi
Gravatar

# re: Changing your hosts file in Vista

Thanks - Thanks, I work with this problem for the last 4 days, I´m almost get crazy, after your advise its work now :) You are the true Guru :) :)

Thanks again
5/4/2009 4:38 AM | niels
Gravatar

# re: Changing your hosts file in Vista

THANK YOU for this post!!!
5/4/2009 8:25 PM | Luis
Gravatar

# re: Changing your hosts file in Vista

Well, the hosts file doesn't block all the sites listed in the hosts file. It lets some through and blocks others. Why is that? This is a fresh install of Windows Vista RTM. No spyware, up to date antivirus.

I added:

127.0.0.1 www.microsoft.com

but if I go to www.microsoft.com, it will still connect. ???
5/7/2009 6:12 PM | Darth Vader
Gravatar

# re: Changing your hosts file in Vista

thank you. have this f'ing vista. Wish I could find drivers for my wireless nic for XP.
5/8/2009 1:52 AM | Joe
Gravatar

# re: Changing your hosts file in Vista

Thanks :)
5/11/2009 2:26 AM | Coh
Gravatar

# re: Changing your hosts file in Vista

ahsante sana!!! The microsoft support nitwits skipped a step and it has driven me nuts (slap chop!) all evening. Thnx.
5/18/2009 1:30 AM | onduko
Gravatar

# re: Changing your hosts file in Vista

thanks for the tip was really good,lol
5/19/2009 9:11 PM | Maxmontana
Gravatar

# re: Changing your hosts file in Vista

D'yakoo-u. Spasibo. Merci. Gracias. Thank you!
5/20/2009 1:36 PM | Edward
Gravatar

# re: Changing your hosts file in Vista

THANK YOU for this post!!!
5/22/2009 10:15 AM | film izle
Gravatar

# re: Changing your hosts file in Vista

THANK YOU for this post!!!
5/22/2009 10:16 AM | film izle
Gravatar

# re: Changing your hosts file in Vista

LEGEND. Thank you so much as i needed to change my hosts file for my webserver :D
5/23/2009 9:25 PM | johnmclane
Gravatar

# re: Changing your hosts file in Vista

Thanks for sharing!
5/25/2009 1:59 AM | R Jones
Gravatar

# re: Changing your hosts file in Vista

Thanks Tim,
Could not figure this out for a long time. :)
5/25/2009 11:34 PM | Chetan
Gravatar

# re: Changing your hosts file in Vista

Thank you very much for the post. It is really helpfull
5/27/2009 2:12 PM | kiran
Gravatar

# re: Changing your hosts file in Vista

thanks

kazim
6/5/2009 4:11 AM | kazim
Gravatar

# re: Changing your hosts file in Vista

hmm,
ok i get wat i need to put and make a host file but when u save it wat do u save it as eg "Hosts.???"
i really nedd help pls someone
6/5/2009 8:26 AM | need help
Gravatar

# Mr

You just save it without any extension. So no .txt or anything OK!
The file name should just look like:
HOSTS
It will save without a probnlem without an extension.
6/10/2009 12:49 PM | HitMe WithIt
Gravatar

# re: Changing your hosts file in Vista

Thank you Tim, I needed to add a line related to adobe CS4 and I was trying to change the folder permissions which didn't work at all. However, this did :)
6/13/2009 6:21 PM | cracken14
Gravatar

# re: Changing your hosts file in Vista

Thank you so much!!

6/13/2009 11:51 PM | cocoa chu chu
Gravatar

# re: Changing your hosts file in Vista

Thank you very much for the post. It is really helpfull
6/16/2009 4:38 AM | lezbiyen
Gravatar

# re: Changing your hosts file in Vista

Hi!

Nice all this, but:

HOW DO I Change in VISTA 64 bit ?????

QUOTE:


There are two "hosts" files and in totally different folders.

e.g. "c:\Windows\winsxs\amd64_microsoft-windows-w..nfrastructure-other_31bf3856ad364e35_6.0.6000.16386_none_5e6cdbf5b2cd5bcb\"

There is no <etc> directory in the ..\system32\drivers\

The Problem is that the files are WRITE PROTECTED ... unchangeable .... nothing to do with User rights or UAC.
It's like the file is in use.

Any way to do entries there via a menu or option setting without editing the file by yourself ?
Any clue `?

Thx!
-------------------------------------------------------------------------

I have EXATLY the same problem , i have a 64bit vista ultimate, help would be appriciated, I HATE VISTA!


6/18/2009 8:47 AM | Timmeh
Gravatar

# re: Changing your hosts file in Vista

Thanks! This was just the information I needed.

And just in case anyone else was wondering, unlike so many things in Windows, it doesn't appear that you need to reboot the machine to have the changes take effect. I just saved the hosts file and reloaded the page and everything started working as expected.
6/23/2009 12:20 AM | Jeff Richards
Gravatar

# re: Changing your hosts file in Vista

Nice work on your page.
6/24/2009 1:51 PM | lyrics of songs
Gravatar

# re: Changing your hosts file in Vista

Thank you. i was strugglgin how to update hosts file vista.. this article helped me a lot
6/26/2009 12:38 AM | Bha
Gravatar

# re: Changing your hosts file in Vista

i cant see hosts file in system32\drivers\etc . but also my hosts file is read-only. help me please i cant change it. is there a way to uncheck the read-only box "remotely"!!
6/27/2009 9:53 PM | nanesuyu
Gravatar

# re: Changing your hosts file in Vista

Oh! Thank ypu very much! This really helped me loads.
6/28/2009 5:04 AM | Turktaeteh

Post Comment

Title  
Name  
Email
Url
Comment   

Powered by: