This article is totally based on How to Enable Localhost in Windows 7, 8 and 10. Let’s start with the basics Localhost is a live host which is used in the testing process by web developer commonly. You must have ISS installed on your browser before instaling Localhost in Windows.
The Steps on How to Enable Localhost in Windows are mentioned below :
How to Enable Localhost in Windows 7 & 10
- Click on Windows Button and go to Control Panel.
- Chose Program For then List of Popup Window.
- Click on “Turn Windows Features On or Off“.
- Now do Check on “Internet Information Services“.
- Then Press Ok and wait till the Components of IIS is downloaded and Installed.
How to Open Localhost On Browser?
If you are using windows then you might be well known about the built-in browser with Windows Internet Explorer. If you want you can also use the alternative browsers Google, Opera and many more.
Localhost Files Location
You can access to localhost files location very easily form your own computer. Open My Computer and open the drive you have installed Windows Os on. Talking about the default the Drive is C:\ then inetpub.
Location : C:\inetpub
How to Change the LocalHost Files?
Once again open My Computer and go to the C:\ drive open inetpub folder. Now go to wwroot folder inside the files and replace the original file with your project file. Next thing you need to do is save the files and close the required File Explorer.
Location : C:\inetpub\wwwroot
Now to check If the process worked or failed to go to your browser. In the URL type localhost. If you see a new window then the process is successful.