Setting Webserver- Host Webpages on your own computer

Have you ever wondered to setup a website without signing up at any web hosting site ? Learning web site designing and wanna keep testing how your web pages look? Free Web hosting sites removing you phishing     pages ?

So solution to such kinda things is in this post.  Basically we are going to turn our pc to a server.

What is a server  ?

Server is we can say, any computer that is serving something . Like webserver serves webpages, ftp server serves files. Any computer can be turned into a server by simply installing a server software. In this post,
I am using XAMPP . By installing this, contents of a particular directory of  our computer would accessible all over internet . Means one could access those contents from any part of the world through our Public IP address.
You can place your web pages or whatever you wish in that directory.
Download XAMPP from here. This package consists of Apache http server (A), MySQL database (M), php (P),Perl (P) and X represents cross platforms.

After dowloading it, simply install it .

At last stage on installation you will get this . Press 1 to start XAMPP control panel.

The control panel would look like this

Click Start to start apache server. Now lets check whether its working,

Open your web browser and visit your local machine address that is or localhost. Hopefully you must get the XAMPP page as shown.

Now check whether it is accessible on internet. Type your Public/External Ip in your web browser and hit enter.
If you got a page as shown, follow the instructions :

1. Go to file httpd-xampp.conf
2. Remove "deny from all" and save the file.

3. Now restart the server and hopefully it would be all right now.

Now what ?

There must be a directory 'htdocs' at location C:\xampp\. The contents of this particular directory will be available to every body. Suppose you place a file anything.html in 'htdocs' directory. It would be accessible at
1.http://localhost/anything.html  or
( Obviously above two links gonna work on your own computer only.)
2. (where is your IP address)
You can start/stop this service simply through the control panel.
Thats all. And you have also use Filezilla(ftp server software) and Mysql (database) as per your need.

Get a domain name ?
Now you would want to get a domain name instead of  using the Public IP to check out your contents.
But how can we get a domain name because our IP is dynamic and to which IP domain name would point ?
Dont worry, we have a solution.
1. Log on to and sign up for an account. Choose available domain name.
2. Download their dynamic DNS update client and run on PC.

This client would automatically keep updating your dynamic IP address and that is how the selected domain would always be pointing to your IP address.

Note: You might need  do port forwarding if you are behind a router. Kindly mention the queries regarding that  in comments.


Post a Comment
  1. good post...
    i hove u guy can continue with this post...
    now,how to set up a web page?

  2. Just place your webpages in "htdocs" directory and they would be accessible world wide. Or do you mean any other thing by "setting up webpage" ?

  3. i really need help this time..
    i have already set up my web server..n i ask my friend to check it out using internal ip on our campus...
    its all going right until i suddenly click on admin on apache server in the xampp control panel...
    it prompt me username n password???
    where can i find it...i haven't set up it before...
    help plz...

  4. Default Username is "root" and password is blank. hopefully it should work.

  5. It is Working man!
    You are genius.

  6. Can u tell how to get a free domain name like

  7. Thanx sujit, for your feedback.

    Yeah some sites provide such services like . You may try :)

  8. i started the apache svc and the filezilla svc, but when i typed the usual locahost in my url but could not locate server why. please give me a step by step help thanks a billion and

  9. please give me facbook hacking tricks

  10. please give me facbook ticks dude

  11. plz give
    facbook hacking ticks

  12. NIce work...

    For facebook tricks i would recommend

    It's just amazing......

  13. hi,please help.when i paste and run my public ip in browser .Browser open router setting please help...

  14. Your Logs will probably be stored under C:\wamp\www Directory for Wamp server. and Ht docs for xammp.

  15. whenever i put my index.html file in wamp www directory and then use my ip in the address bar, my router settings open and not the page?

  16. whenever i type my public ip-address it endup saying "page cannot be displayed". plz help!!!

  17. hey i have a problem i have make the server but plz tell me if i have to do phishing of facebook then which file i have to put in htdoc either all the 3 files for phishing or only index file and where can i see the logged information of the victim ???

  18. i can not find out httpd-xampp.conf
    where is it located?

  19. i have installed webserver
    and it is working
    but i dont know how to upload data to my site,
    plz help

  20. plz tell me about
    how it works
    how can i upload data to my site i nm hosting on my server

  21. thanx for such nice articles

  22. why should i dont copy articles

  23. why shouldn't i copy these articles

  24. hellow your post is very intresting. can you teach me how to find my external ip. and how to set my own domain dns with localhost.

    i hav deleted the line u mention from the httpd-xampp.conf file but still it gives me the same error.. i.e, ACCESS DENIED!

  26. when i type localhost its wrking when i type my ip its nt wrking. wht is problem?

  27. I use a Huawei data card for internet,and i am trying to set up a webserver on my computer.Every works fine in localhost but not when i try to access my site from any other computer via internet.
    any suggestion

  28. Thanks bro

  29. When I write my ip, nothing happens

  30. nice post ;-)

  31. its only working on my pc... plz help how can i use my page on other pc


  33. you guys can use to publish localhost on the is easier and faster - aether exxerius

  34. hello i tried this, but everytime i type in my host/redirect to attempt to visit my website my router default gateway appears??? what do i do to fix this i have configured port 80 with the TCP protocol and set it as an HTTP service on my router page.. but it still won't work and i do have a index.html file in my htdocs directory....PLEASE HELP!!!

  35. nice dude! its working

  36. this method is not working man ...when we use dial up connection we are always behind a router

  37. please update this post...screenshots are expired

  38. Please reuplaod the Images..

  39. where can i write in htdocs means in which folder.

Post a Comment