• Find us:
    +1-669-900-5138   |   +44-203-372-5553
  • Free Newsletter

    Get Latest Updates

  • Make Training Enquiry


    Company

  • Categories

  • Archive

  • Change “hosts” file in Windows Vista

    Posted by "" in "Unix" on 2008-05-11

    Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInEmail this to someone

    If you wish to connect to a machine by hostname (which is not registered in DNS (Domain Name Server)) you need to add <IP> <Fully Qualified Hostname> <Hostname> in Hosts file.
       Adding an entry in Non Vista (Microsoft O.S. XP, 2000, NT) is pretty simple. Open hosts file (using text editor like notepad, wordpad..) and hostname entry in above format like

    192.168.0.1  myMachine.myDomain  myMachine

    • Location of hosts file in windows is C:\Windows\System32\drivers\etc  (where C is drive in which you installed operating system)
    • Location of hosts file in Unix/Linux is /etc

    Change hosts file in Windows Vista

    If your O.S. is windows vista, it won’t let you save your hosts file if you don’t open file editor (like notepad) with Administrator Privileges

    • Click Start -> All Programs -> Accessories
    • Right click Notepad and select “Run as Administrator
    • On Notepad click on File -> Open
    • Browse to “C:\Windows\System32\Drivers\etc
    • Change the file filter drop down box from “Text Documents (*.txt)” to “All Files (*.*)
    • Select file hosts and click on Open
    • Add entry of host which you wish to connect in format
      <IP Address> <Machine Name> <Machine Alias>  like
      192.168.1.1    myMachine.myDomainName  myMachine

    Note : If you can’t find Accessories under All Programs then to identify Program (Notepad) type notepad in Start Search box after clicking on Start menu at bottom left of your laptop

    * Ensure you don’t savefile as type text (hosts.txt),  file name should be just hosts

    17 Responses to “Change “hosts” file in Windows Vista”

    1. famy says:

      By default in vista , UAC ( User Account Control ) is enabled.

      To disable, go to Control Panel, Click
      on “classic view”, click on “user accounts”,
      click on “turn user account control on or off”

      Then disable the option by unchecking it.
      Restart once.

      Now to Start > Run ( windows key + R )
      type “drivers”

      click on etc > hosts

      Now you can edit and save with all privileges.

    2. Vista suck says:

      I did whatever u told me but nothing happened.
      Here is what my host file contrains.

      127.0.0.1 localhost
      #——————————————
      # Lineage][Storm Connection
      #——————————————
      77.234.135.65 L2authd.lineage2.com
      77.234.135.65 L2testauthd.lineage2.com
      216.107.250.194 nProtect.lineage2.com
      #——————————————

    3. Atul says:

      Nothing happened means ?

      Can’t you see entry in hosts files ?

      Or

      you can’t save hosts file

    4. Vista suck says:

      When i go to save the changes a window pop ups and says:The creation of this file cant be done(it doesnt say that but i translate it because my pc is in greek)and a little bit more down it says:Be sure that the destination in C and the name of the file are correct.

      I dont know what happenned about few days later i could change the hosts but yestarday i couldnt.

    5. Atul says:

      Did you open notepad (any tool you are using to edit file) as administrator ?

      Right click on file and under properties check if this file (hosts) is not write protected .

      Also as suggested by Famy, in comment section disable user access control and reboot vista machine

    6. Vista suck says:

      Ok i did it ty for help

    7. Vista suck says:

      ty = thank you !!!

    8. kunal198916 says:

      i want to open any other website by adding the ip add and the domain name or the website name but instead of opening it , it blocks the website i.e the name of the website eg:- 209.&&.$$.$$ http://www.download .com suppose the ip add is of google then when ever i type download.com google should come up but that does’nt happens , it just blocks download.com

    9. kunal198916 says:

      its related to hosts file

    10. suruku says:

      Thank you for the information. I could edit
      host file sucessfully

    11. guenter says:

      can’t find the hosts file in w2k8

      any idea?

    12. dietke says:

      Thank you so much for posting this! It was a GREAT help!!

    13. dhananjay s says:

      hi sir i am Dhananjay i hv a core i3 330 processor. laptop can i install oracle apps r12 e-business suite. ok thank you reply plz…..

    14. Atul Kumar says:

      @ dhananjay, Yes you can. Ensure that you have atleast 4 GB memory

    15. Pablo says:

      Thanks!!! U rock, dude.

    16. Josh says:

      I switch different Hosts-Files with this tool here:

      http://tools.toflo.de/HostsSwitcher/

    Leave a Reply



  • K21 Technologies is among the most experienced Oracle Gold Partner for Identity Access Management service providers. We work with application development companies and in-house technology division to help achieve significant returns on their IT security investment. Our clientele includes some of the globally renowned corporate, which speaks of our expertise in our field.

    We have the most talented and experienced team that can swiftly deploy security solutions even in complex IT ecosystem. Our clients highly appreciate our timely implementation, interactive training, on-demand support and community resources.
  • CONTACTS

    K21 Technologies
    8 Magnolia Place, Harrow,
    London, HA2 6DS

    UK: +44(0)7476444481
    USA: +1-888-414-1821

  • 2014, K21 Technologies. All rights reserved DMCA.com
  • TOP