How can i reset my Windows XP host file to default

Asked By 130 points N/A Posted on -

My windows XP host is deleted how can i reset it the host file.

How can i reset my windows XP host file to default

Best Answer by Marie Chan
Best Answer
Best Answer
Answered By 0 points N/A #124285

How can i reset my Windows XP host file to default


Microsoft has created an automatic fix for this certain problem and you can access that automatic fix here:

If you want to try and fix it manually here are the steps how:

  1. Type this in the Run window ( click Start>Run ): %systemroot%system32driversetc (where system root is your default main root folder, usually C: )
  2. Change the name of the hosts file to hosts.old
  3. Open Windows Explorer and go to %WinDir%System32DriversEtc folder ( WinDir is your Windows directory )
  4. Create a new text document, name is hosts, make sure the file extension is not text (.txt)
  5. Open the new hosts file using notepad or any other text editor.

Since you're using xp, here is what the contents of the hosts file should be:



Once you done, save the file and you've just created your default hosts file. Congratulations!


Answered By 577940 points N/A #124286

How can i reset my Windows XP host file to default


The method above assumes that your hosts file is still there and not deleted and you want to restore it to default. This is good if you added several addresses in there and you can’t remember which ones should be removed and which should remain. But in case the file was really deleted like what you said, you can always create a new hosts file and put it back where it is originally located.

Open Windows Explorer then go to “C:WINDOWSsystem32driversetc” to verify if the “hosts” file is really not there. It normally has several other files in there besides hosts file: hosts, hosts.ics, lmhosts.sam, networks, protocol, and services. See image.

If the file is really missing, open Notepad and put these lines in there:

  • # Copyright (c) 1993-1999 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:
  • #
  • # # source server
  • # # x client host
  • localhost

Once the texts are complete, save the file as “hosts” without extension name and save it in “C:WINDOWSsystem32driversetc”.

Login/Register to Answer

Related Questions