How to host a website on any version of Windows in 5 minutes
Articles,  Blog

How to host a website on any version of Windows in 5 minutes

Hey guys its Alex here Today I’m going to be showing you how to host your own website on your Windows machine This process that I’m going to show you is identical on Windows 7, Windows 8, and Windows 10. In this case I’m going to be using Windows 10 and this is a very simple process that does not require downloading anything from any 3rd party websites So, the first thing you’re going to need to do is simply go to start, and type in features. and you need to enable the internet services for this machine. So scroll down to internet information services right there. If you want to install all of the features including management tools and FTP server, then you can go ahead and check that. But for this, all we need is the world wide web services So simply check that box and hit OK. There we go, so after about a minute, it downloads the required packages and is completed with installing them. So your next step is simply to go to your C drive and now you have a new folder here called inetpub and inside here we have the directories that are required for the webserver. and all you need to do is go into your wwwroot folder here. and as you can see, it already puts in an example site that we can actually simply go into our web browser and take alook at what it is. by typing in http://localhost and as you can see there is the webserver with internet information services default. So if you want to change that to anything that you want. Simply just delete these files. Create a new file in notepad Run this as administrator. this is a test of my new site and we need to save this into that folder inetpub wwwroot and name this as index.html and now, go back to the localhost and there you can see the text that we just put “this is a test of my new site” So I have an example site here, a bootstrap example site that I just created and in order for me to test this out, let me drop it in the web server here. we need administrative permission Let’s take a look at this example of this boostrap website and there we go, very simple, small bootstrap site. and you can change whatever you want on it So in order for other people to go to this site, if you are new to networking. All you need to know how to do is how to port forward your computer with your router So, in order to do that, open up a command prompt or powershell. and you need to find your local IP address of the machine you’re using, along with your gateway IP address, which is the IP address for your router. and once you find out the IP address for your router, then you type that into your web browser, go to the port forwarding section on it. then port forward port 80 to your local IP address. So that command is simply, ipconfig As you can see here, this is my local IP Address. and this is the gateway address. So this is the one you type into your web browser; http:// “this address” Go to the port forwarding section then add port 80, to this IP address. and after you do that, anybody that types in your external IP address into their web browser will go to your site, right here, as long as your machine is on So by finding your external IP address, for them to type in, after you’re done port forwarding. Simply type into google “ip address” and it shows you your public IP address right here, under the ad Thank you guys for watching, and I hope you enjoyed the video, please subscribe if this helped you and share it with a friend. Thanks


Leave a Reply

Your email address will not be published. Required fields are marked *