Subscribe Now

* You will receive the latest news and updates on your favorite celebrities!

Trending News

Blog Post

How to host website on your own PC
Networking, Tips and Tricks

How to host website on your own PC 

Hosting your website from your PC will give you little bit experience of how hosting services work.

You can try it for small website or personal work.

To run your PC as server there are lot of software but top most popular is WAMP server and XAMP server,Here i’m using XAMP server.

So,Let’s start our hosting:

Here I’m using XAMP server , you can download latest version form here

and install it, after then add the security exception for Apache in Windows Firewall when prompted.

Now after installation:

Now double-click on XAMP icon place in taskbar, the XAMP console will show up.

Click start on Apache and then click on explorer button.

Go to your browser and type localhost. Just only to make sure that you properly install and configured XAMP. (If localhost opens XAMP homepage in your browser it means you are ready to rock with your PC).

Now on your Explorer window, copy your website content and pages in htdocs directory, Example: I made a website with a folder  “mywebsite” and copied it in htdocs directory.

Now go back to your browser and type localhost/mywebsite (replace mywebsite with your website page) in URL bar, you will see your website show up.

Congrats your website is up and running.

But this is only works on LAN

If you want to host it on WAN then you need a static IP

(i.e. A static IP address is a number (in the form of a dotted quad) that is assigned to a computer by an Internet service provider (ISP) to be its permanent address on the Internet.).

Use your IP in URL bar instead of localhost then it will works on WAN means you can access your website anywhere in the world.

Related posts

Leave a Reply

Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.