InMotion Hosting Support Center

What is a hosts File Modification?

A hosts file modification is a simple tweak that is used to "trick" your computer into resolving to a specific IP. This is especially useful when developing your site on our server when your nameservers are not pointed to us yet, and you are working with domain-name-dependent software (ie. A Content Management System (CMS) such as Joomla! or WordPress).

How Does a hosts File Modification Work?

The image below depicts the process of resolving a domain to an IP address using various devices. In the image, the hosts file on "Your Computer" has been modified with the following code:

86.75.30.9 example.com
86.75.30.9 www.example.com

Since the hosts file was only modified on "Your Computer", only that device will resolve the domain: example.com to the IP address: 86.75.30.9.

Other devices, that do not have the hosts file modified, will resolve to the IP address: 172.16.0.0, found in the DNS zone--present in the name servers that the domain is pointed to.

How to Perform a Hosts File Modification

Follow the sections below to learn how to make a hosts file modification.

Run Notepad as administrator

To perform a hosts file mod, you will need to first run Notepad (or any other text editor available to you on the same computer) as administrator. This is because the hosts file is a system file and cannot be modified otherwise. Note: If you are running Windows XP or lower, you won't need to run it as administrator as this functionality only exists in Vista and above. Locate Notepad within your Start menu. If it is not already there, you can type "notepad" into the search box to show it. Then, right-click on it and click on "Run as administrator".

Open Your hosts File

After you have Notepad up and running as administrator, you can then locate your hosts file and open it. While not all Windows versions store it in the same place, it is typically located within c:\windows\system32\drivers\etc\ and the filename is: hosts. If you do not see it there, other possibilities are as follows:

  • Windows 95/98/Me c:\windows\
  • Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\
  • Windows XP Home/Vista/Windows 7 c:\windows\system32\drivers\etc\
  • Windows 8 c:\windows\system32\drivers\etc\
  • Windows 10 c:\windows\system32\drivers\etc\

Now, we need to open our hosts file. With Notepad already open, click on "File", then "Open...". As the hosts file is not a standard .txt file as Notepad will look for by default, you will change the drop down in the bottom right that says "Text Documents" to instead display "All Files(*.*)" Navigate to the location of your hosts file and double-click on it to open the file in Notepad.

Locate the IP address that is associated with your account

  1. Log into cPanel
  2. cPanel main To the right you should see a column of stats describing your account. Look for Server Information and click on that link.
  3. Server information Scroll down to where you see "Shared IP address". If you have a dedicated IP, it will say "Dedicated IP" instead. This is the information that you will need for your hosts file mod.

Edit Your hosts File

Now that you have your hosts file open, its time to edit it. Within your hosts file, you should see something similar to the following:

# 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:
#
# 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. In Notepad, click on "File" and select "Save As..."
  2. In the file name, enter something you will remember such as hosts_file_09.16.2013
  3. Click "Save"

Using the information you have gathered you will add some lines to your host file. They will look something like this:

202.133.229.123 my-wordpress-site.com
202.133.229.123 www.my-wordpress-site.com

After making the change, click on "File", then "Save". You have now made your hosts file modification.

Using Windows 8 and Windows 10 to Change your Hosts file

Dealing with Defender in Windows 8 when Modifying the Hosts file

If you are using Windows 8, Windows Defender is running by default and it prevents the change of the hosts file. You will need to allow this file to be edited by going into Windows Defender and performing the following steps:

  1. Navigate to Windows Defender hover over the right corner to bring up the navigation bar. Click on the icon that appears to be a magnifying glass to start a search. Type in "Windows Defender", click on the icon that appears. It will be labeled "Windows Defender." Click on this icon and the application will launch.
  2. When Windows Defender opens, click on the tab labeled Settings.
  3. Next, type in the location of the hosts file based on location of the Windows installation. Here's the default path: c:\windows\system32\drivers\etc\hosts
  4. Click on the Add button and you'll see it added to the list beneath the file locations.
  5. Click on Save Changes in the bottom right and then close Windows Defender.
  6. The next step will be actually edit the file. As per the instructions above, you will need to edit the file as an Administrator. Hover over the right side again, and then search for "Notepad". Open it as an administrator.
  7. Open the file as per your HOSTS file path.
  8. Make your edits, and click on SAVE by clicking on "File" to bring up the menu. This completes the HOSTS file edit in Windows 8.

Working with Windows 10 to Change Your Hosts File

When you are working with Windows 10, the main concern you will need to address before you begin is being able to make a change to the hosts file. You will need Administrator access in order to make the change. If you have any questions concerning administrator access please see Microsoft's definition of an Administrator for Local accounts or speak with a local Windows administrator. In Microsoft's documentation local accounts means "on your computer." Follow the steps below to quickly and easily make changes to the hosts file.

  1. Login as your Administrator User
  2. text Right-click on the Windows icon in the tool bar.
  3. text A pop-up menu will appear. Look for Powershell (Administrator) then click on this option.
  4. text You will see a Window notification pop-up asking if you wish allow permission for the application to make a change. Click on Yes to continue.
  5. text When the prompt appears, type in Notepad. Since you are launching Notepad from the Powershell Administrator, it will launch the application with the appropriate administrator permissions.
  6. In the Notepad menu, click on File, then click on Open. You will need to navigate to the folder that contains the Hosts file. This is the typical path: c:\Windows\System32\drivers\etc\.
  7. text If you do not have show hidden files enabled in your Windows File preferences, you will not see any files. However, type in Hosts, then hit enter. Notice that the file does not have an extension - it's just "hosts." This will bring up the Hosts file. Since the Hosts file is a system file, it will be hidden unless you set your Windows file preferences to show hidden files.
  8. text At this point you will see the Hosts file. As per the instructions above you will need to have the IP address of the server where you trying to point the URL. Make sure that you follow the example provided and put a space between the IP address and the domain name that you wish to use.
  9. Click on File, then click on SAVE in order to save any changes that you may have made to the file.

As a precaution close the Notepad window and then can re-load the hosts file per the beginning steps and double-check to see that your changes have been applied.

How do I know that it worked?

The easiest way to see that it worked is to just go to your domain. Does it show your new site as it should on our servers? If there were no changes to your site from when you moved it, you might need to run a ping test to ensure that it shows the correct IP.

Flushing Your DNS Cache

If your computer has cached your DNS, you will need to clear it. Luckily, we have an article that can teach you how to do just that:

How do I clear my local DNS cache?
Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
Subdomain not live after creating it
404 Error on everything except main page | Xenforo
Root folder issue in html when using the VPS URL given to me
Testing and Production Blog Site Coordination
Configuring a site prior to domain transfer
I cannot log into WP admin zone
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2018-10-19 10:58 pm

There were no changes to the site, and when I   run a ping test there it shows the correct IP address. Thank you for this article. 

Staff
3,017 Points
2018-10-22 10:56 am
You're welcome! We are glad that this article could help you!
n/a Points
2018-06-23 12:53 pm

These are instructions on how to do it on a PC Windows 7, but what about if I am on a mac?

Staff
1,173 Points
2018-06-25 11:53 am
We have a guide on how to do it on a MAC at the link below.

https://www.inmotionhosting.com/support/website/how-to/how-to-edit-your-hosts-file-on-a-mac
n/a Points
2018-05-12 6:00 am

Thanks for your wonderful support DNS vs hosts file modification support that is very useful for the system and it resolves the particular IP. this is very good and I used this and it very useful.

Staff
3,017 Points
2018-05-14 11:07 am
You are welcome! We are glad that our Support Center is helpful for you.
n/a Points
2018-05-12 2:07 am

I have modified my own host file that is very useful for us. When I ping on my local computer it returns the correct IP address on the shared computer. your website Article is good and how I find my own IP.

Staff
3,017 Points
2018-05-14 11:09 am
Thank you for your feedback, we are happy that you find out Support Center helpful!
n/a Points
2018-01-22 7:00 pm

I followed the instructions

But when I go to save the updated hosts file it wont let me because it says it is read only.

I am definitely run ning notepad as an administrator. I even tried to get rid of the read only status of the file, but it wont let me do that either.

I have tried on multiple computers multiple times 

ANYONE KNOW HOW TO RECTIFY THIS?

Staff
3,017 Points
2018-01-22 10:37 pm
Since you are advising that you are running Notepad as the Administrator, I recommend you use an alternative text editor. You can always use Window's cmd application to open the file as the root/administrator user and modify the hosts file accordingly. Other than that, I recommend you contact Microsoft to advise why Notepad, running as Administrator, is unable to modify that file.
n/a Points
2018-03-07 8:14 am

My computer did the same thing because even though I was an Administrator account, I didn't open the program as an Administrator, but I was able to get around it by opening wordpad as admin before looking for the hosts file. Just type "wordpad" in the windows search box. Right click on the wordpad program or app icon and select "Run as Administrator". Once in the wordpad program pull down the file menu, select open file, navigate to the proper directory (C:\Windows\System32\drivers\etc\hosts) in Windows 10. On the bottom right select to show all files instead of just wordpad files and double click on hosts to open. After you add the line(s) to the bottom of the hosts file, select "save" and you are done.

n/a Points
2017-10-27 10:25 am

You can also use something like testahost.com just to preview a site on its new IP before going live.

n/a Points
2017-06-28 9:30 am

I followed the directions to modify the Hosts file on Windows 7, running as an administrator. I also cleared the DNS cache. But when I try to save the file I always receive the following error message: "The process cannot access the file because it is being used by another process."

I exited my browser and other open programs, tried again, and received the same error message.

13,821 Points
2017-06-28 9:34 am
Looks like they answer how to solve that here:
https://forums.techguy.org/threads/solved-the-process-cannot-access-the-file-because-it-is-being-used-by.1051872/
n/a Points
2017-08-24 11:45 am

It's not clear by the thread you linked to what the end solution was. Could you summarize it? 

If I can't get this issue solved in order to stage my sites offline while working on it, I won't be able to use InMotion Hosting at all. 

13,821 Points
2017-08-24 2:02 pm
So is the issue you're not able to edit your hosts file? Or is the issue you're not sure on how to set up a development environment? We want to help you but we need more information.
n/a Points
2017-08-30 9:03 am

I'm not able to save the hosts file on either of my computers despite having adin access. I'll reach out to support to see if we can talk this through. 

n/a Points
2017-06-15 2:51 pm

Hi,

Article was very enlightning. 

I was able to access the website on inmotion hosting by doing modifications on my Hosts file as

123.456.789.012 example.com

But the problem is I am using wordpress site and i need to access the dashboard of the website. its giving Error 400 : not found.

123.456.789.012 example.com/wp-admin

can you please suggest the solution on this.

thanks

Gaurav

Staff
31,313 Points
2017-06-15 3:34 pm
The second line (123.456.789.012 example.com/wp-admin) is not necessary, since the first one should direct all traffic to example.com. I recommend troubleshooting your .htaccess file by renaming it.

We also have additional steps in our WordPress Troubleshooting guide.

Thank you,
John-Paul
n/a Points
2017-06-16 8:29 am

Hi john Paul,

thank you for the reply.

123.456.789.012 example.com

When i have added this to my host file browser redirected me to inmotion servers and i am able to access the wesite. but when i accessed  example.com/wp-admin it is taking me back to old server. It is showing the dashboard located on previous hosting.

 

Thanks,

Gaurav

2,858 Points
2017-06-16 12:03 pm
Gaurav, WordPress handles redirects differently than a static site. I recommend <a href="http://www.inmotionhosting.com/support/edu/wordpress/wordpress-introduction/installing-wordpress-using-your-temporary-url">configuring WordPress to use your Temporary URL</a>.
n/a Points
2017-06-10 5:01 am

I edited the host file and I was able to view my website on through inmotion but after returning the host to the default configuration. I noticed I can access certain websites. example: www.innov8systemsng.com; www.fgasuleja.gov.ng

Please help.

Staff
43,761 Points
2017-06-12 12:17 pm
The hosts file only changes the routing for the specific domains you enter into it. It will not affect any other sites.
n/a Points
2017-06-09 6:13 am

I could find the IP address associated with my cpanel account. I hope it is not the general shared IP address.

2,858 Points
2017-06-09 12:26 pm
You can <a href="http://www.inmotionhosting.com/support/website/cpanel/how-to-find-your-shared-ip-address-of-your-server-in-cpanel">find your account's IP address</a> right from your cPanel.
n/a Points
2017-06-07 2:04 pm

i have update the hosts file but after soe time the hosts file is come on the deault condition. I am using Windows 7 Please tell me how can i update and save the hosts file.

http://www.starscollege.edu.pk/

Staff
42,337 Points
2017-06-07 2:48 pm
Hello Hamzasheraz,

The method to change the hosts file in the article above is correct. If you're having problems with it, then you need to speak with a pc tech. Remember that any changes to the hosts file require that you have administrator access to the Windows files.

If you have any further questions, please let us know.

Kindest regards,
Arnel C.
n/a Points
2017-01-10 11:49 pm

After modifying the hosts files as described, when I try to access my domain, I receive a "Privacy Error" as shown below.  (I'm using Google Chrome):

Your connection is not private

Attackers might be trying to steal your information from rhymeswithmartini.blog (for example, passwords, messages, or credit cards).

 

NET::ERR_CERT_COMMON_NAME_INVALID
Staff
42,337 Points
2017-01-11 6:47 pm
Hello Jasmine,

Sorry for the confusion with the message from Google's Chrome browser. If you have a website where passwords are being passed, google will flag the site in order to warn you that the site is not using an SSL connection. If you know you're connecting to a particular server (which you designate in your hosts file), then you can ignore that message.

If you have any further questions or comments, please let us know.

Regards,
Arnel C.
n/a Points
2016-10-18 11:07 pm

This was a very helpful article and thank you for the video of baby steps on how to do this properly! I will bookmark this page for future reference.

~Jubilee

n/a Points
2016-07-21 3:46 am

I owe a website. Ichanged my host from hostitsmart to basezap.

Now only on my college wifi network, i am seeing my old hosting, rest everywhere i can see the proper new hosting.Please help

Staff
31,313 Points
2016-07-21 9:28 am
First, I recommend removing any host file modifications related to your domain.

If you recently made DNS changes (such as Nameserver, or 'A record') this could be a result of propagation.

If it has been longer than 24 hours, you need to clear your local DNS cache.

Thank you,
John-Paul
n/a Points
2016-02-23 6:26 am

Thank you it works 22th feb 2016 :)

n/a Points
2015-10-24 4:10 pm

Hi All,

 

Thanks for the information. I made the changes but as soon as i restart the system , the host file comes back to the original contents and deleting the changes made.

 

Regards,

Majid

Staff
43,761 Points
2015-10-26 9:14 am
Hello Majid,

As that is something on your local system, it is not something we can troubleshoot from here. You may want to keep a copy of the hosts file so you can replace it when you restart. This issue can be caused by security apps on the machine, so may want to set the hosts file to Read-Only after you change it to see if that helps.

Kindest Regards,
Scott M
n/a Points
2015-09-30 9:37 pm

I have modified my hosts file.  When I ping on my local computer it returns the correct IP address on the shared computer.  However it displays the home page of luzoft.com

I have done this with two different domains.  Luzoft.com keeps coming up.  any idea why?

Staff
31,313 Points
2015-10-01 12:49 pm
Hello greg,

Thank you for contacting us. As a test, I recommend also performing a Traceroute. This provides specific information into the path you are taking to get to luzoft.com. Here is a link to our guide on How to read a traceroute.

Thank you,
John-Paul
n/a Points
2015-08-26 9:07 am

I Want to block all URL and want to allow only one uRL which i am using in both windows & Linux(Ubuntu OS)

Kindly help me in this.

 Regards

Rajasekar v

 

Staff
42,337 Points
2015-08-26 1:41 pm
Hello Rajasekar v,

I think you're trying to block access via IP - you can't really do that with URLs. You can block access to the website using .htaccess modifications. Check out this post concerning the topic.

If you have any further questions or comments, please let us know.

Regards,
Arnel C.
n/a Points
2015-08-26 2:27 am

Hi

i have update the hosts file but after soe time the hosts file is come on the deault condition. I am using Windows 10 Please tell me how can i update and save the hosts file.

Staff
42,337 Points
2015-08-26 11:27 am
Hello Sandeep,

Check out this link on modifying the Windows 10 hosts file. You would need to modify it with the appropriate admin access in Windows.

If you have any further questions or comments, please let us know.

Regards,
Arnel C.
n/a Points
2015-07-25 11:56 am

if u are unable to edit ur host file, simply copy the text from the host file and open another note pad with administrative privillage, paste the text and other text when u want, save the file by replacing the previous host file in c:\windows\system32\drivers\etc\hosts and u are done. 

n/a Points
2015-07-20 10:56 pm

The host file needs format: ‘IPaddress domain’ not ‘IP/somefolder/  domain’.  I do not see how it is going to work for users when their hosting is at something like at IP/~cpanelusername/. All instructions above and video example IP without a folder only.

Staff
10,077 Points
2015-07-21 9:05 am
Hello Manly Electronics,

You do not need to add a folder to the host file. Lets say for example I had a development environment on 192.168.1.1. I would put in the host file "192.168.1.1 domain.com www.domain.com". This would allow me to go to domain.com/testing if I needed to. If you are using IP/~userna5 then you do not need to use a host file mod as it is only to trick your computer into thinking the domain has already resolved to another server.

Best Regards,
TJ Edens
n/a Points
2015-07-21 8:32 pm

Thanks for reply but let’s be specific, If to access site the URL is http://192.145.237.216/~username/ then what the line in ‘hosts’ file should be to access it via http://amydomain.com  locally from my PC only?

Staff
10,077 Points
2015-07-22 12:26 am
Hello Manly Electronics,

You would put the following info into your Host File:

192.145.237.216 amydomain.com

Then you would visit amydomain.com and it will load http://192.145.237.216/~username/ automatically.

Best Regards,
TJ Edens
n/a Points
2015-07-15 7:49 am
Website Migration Step 7 The icon for the Original hosts file is clear file type displays "File." Text file icon shows stripes and displays text document . Inmotion rep stated to save the new hosts file as txt, but all other file in Hosts folder display "file." When I save the changed hosts file do I save as .txt or file? Thank you Richard Aldrich
Staff
42,337 Points
2015-07-15 9:58 pm
Hello Richard,

Thanks for the question about the hosts file. Basically, the file is a text file, but should be saved as a file and NOT as a .txt file. It's a system file that is not recognized if saved with the extension of .txt.

I hope this helps to answer your question, please let us know if you require any further assistance.

Regards,
Arnel C.
n/a Points
2015-04-26 10:43 pm

Hi,

I just got your email that the transfer of my website is complete, but I have no idea if it worked or what's the next step.

When I try the temp URL, I get a site that doesn't look like my site should (a version of a construction page that I did not use).

When I type in the site's URL I do see the construction page that I modified. 

However, I don't know what's the next step. I'd appreciate some help now please. Thanks.

Staff
43,761 Points
2015-04-27 4:47 pm
Hello Yuri,

Did you use a hosts file mod to view your site on our servers?

Kindest Regards,
Scott M
n/a Points
2015-04-28 8:25 am

I attempted to do that Scott. But I can't save the Host file after I've edited it.

What format should the edited file be? I only have the option of saving as .TXT even when I run it as Admin.

Staff
31,313 Points
2015-07-27 9:30 am
Hello Yuri,

Thank you for contacting us. Your "hosts" file typically does not have a file extension, and is just named "hosts".

Thank you,
John-Paul
n/a Points
2015-03-24 2:50 am

I setup a joomla website on my windows server 2008.. now i wanted to view that outside local area network.the problem:

 

I have this static ip address at home, whenever I input my home ip address at the office. It will forward me to my router which is dlink 600L.. which then asked my username & password.

 

What I wanted is that, whenever I typed my static IP address, It will forward to my Joomla Webpage. Thanks in advance for those who can help. I'm not good at this. Please Please help

Staff
10,077 Points
2015-03-24 3:35 pm
Hello Newbie,

You will have to forward port 80 to your server which would have to be on the same network.

Best Regards,
TJ Edens
n/a Points
2015-03-15 7:34 pm

I have transferred all my files from Yahoo to InMotion and placed all of them in the public_html folder in the cpanel. When I click the temporary URL the website does not come up just information saying that that it is activated but not showing, blah blah. My site is panicend.com. Am I doing something wrong? This is getting very frustrating. Thanks for any help!

Staff
31,313 Points
2015-03-16 10:59 am
Hello Jeff,

Thank you for your question. I tested your site on your Temp URL, and it seemed to be working successfully.

Are you still having issues at this time?

Thank you,
John-Paul
n/a Points
2015-01-28 5:28 am

Hi to all

please tell me that how can i block all website and allow only one wesite please tell me i am wating for your answers

Staff
42,337 Points
2015-01-28 11:43 am
Hello Ali,

Thanks for the question. You can actually use the same rules as you would use in blocking country IPs, except you would deny all and allow only the one IP address.

<Limit GET HEAD POST>
order allow, deny
allow from 123.456.789
deny from all
</Limit>

I hope this helps to answer your question, please let us know if you require any further assistance.

Regards,
Arnel C.
n/a Points
2015-01-19 2:53 pm

Thanks for enlightening us. I am working on a drupal site. To edit the host file, do I need to have a local server installed or not necessarily? Because I already edited the host file, but when i type the website address in the browser nothing loads.

Also where in the host file should the IP address be inserted?

 

Looking forward to your support

Staff
42,337 Points
2015-01-19 3:12 pm
Hello Mamie,

Thanks for the question. You don't need to have the local server installed to edit the HOSTS file. The IP address change should be done near the top with the other IP addresses. For example:

# 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
123.234.456.789 www.website.com

You can insert the IP address and the corresponding URL right under the localhost entry. As per the example above. Remember that URL is very specific. So, if you put an entry of "123.234.456.789" and it corresponds with "www.website.com", then ONLY when you type in "www.website.com" will that IP address apply. Developers often use this change so that they can see a website with the original URL, even if the rest of the world is seeing a different website coming from another IP address.

I hope this helps to answer your question, please let us know if you require any further assistance.

Regards,
Arnel C.
n/a Points
2015-01-20 9:04 am

Dear Ann,

Thanks for your wonderful and swift support! I was able to get through. Actually i realised that I correctly edited the Host file, but in my browser forgot to type "www."which was written in the host file.

 

Look forward to your future support.

 

Best regards,

Mamie

n/a Points
2016-10-15 3:16 am

An excellent advice!

But what happens if the website has multiple pages, for example www.anexistingdomain.com/support or www.anexistingdomain.com/contact? Should i modify the hosts file further and include these too? like:

 

123.456.789.012 www.anexistingdomain.com/contact

123.456.789.012 www.anexistingdomain.com/support

 

Thanks in advance!

13,821 Points
2016-10-17 6:43 am
Well, it depends on how your website links are set up (like in the menu) but normally all you have to add is the Top Level Domain and it will cover the entire website. The exception which is rare, would be if you have used IP addresses for links within the pages.
n/a Points
2015-01-19 11:58 am

If i am in office and i user standard user account my IT department has block all socail media site from host file than How i detail host file without adminsatration account. 

Staff
42,337 Points
2015-01-19 12:09 pm
Hello Dipanjan,

I think you're asking if it's possible to modify the HOSTS file without an administration account. Basically, you will not be able to make these changes without the proper access. You will need to speak with your IT department and get permission before making any HOSTS file changes.

Kindest regards,
Arnel C.
n/a Points
2014-09-06 11:55 am
I am a brand-new InMotion customer and my site has juts been migrated to the new servers. This article walked me through this process step by step, which is a very good thing because I have no idea what I was doing or why I needed to do it.
n/a Points
2014-07-10 12:48 pm
No changes needed. Explained exactly what I needed explaining. Thank you very much!
2013-12-05 1:20 am
Ops it's fine now, I found the reason for this error.

Those who are getting this error, click start > search for notepad > right click on it > run as administrator.
When the notepad opens > click file > open > then browse to c:\windows\system32\drivers\etc\ > now from notepad click the "Text document (*.txt) " button and change it to All files.

Now you will be able to see the host file, just select it and click open button. Edit it > save it (cntrl+s).
2013-12-05 12:48 am
I can't save the host file after editing, it showing an error message, "check if the file is opened in another program"

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

69 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!