Host A Web Server on Your Home PC
By Ashish MohtaIf you want to make small site of your own and don’t want to pay for hosting prices, this article and exactly tell you how to do it.I had always wondered if I can host my blog or a small site on my laptop but well looking at traffic and security I can’t.
But if you want to make a website for friends and family this can be a good solution for u . You don’t have to pay any money for this. A friend was going through some magazine ( I am not sure which one ) and he told me about a software that really can help you hosting a web site on your own pc.I gave it a try and its really good.A small analysis and experience of this software in just 6 steps and its tested in Windows Xp, Vista you need to check
Step 1: Download and Run The Software
Download the HFS or Http file server.It is free and open source and above all that its a standalone executable that requires no installation.
- When you run HFS you might be asked whether or not allow hfs.exe to connect to Internet.Unblock it.
- But if you have 3rd party firewall you will have to configure it accordingly.
Step 2: Configure the port
By default HFS uses port 80.if you your firewall is blocking port 80, set HFS to some other port( for example to 8025 or which ever is free, as a precaution keep it above 1024 which is used my operating system itself.)

- To change the port number, click on Port Number menu and enter a new one.
- Also, if you are behind a router or firewall, you may in some rare cases, need to set up port forwarding. For all the help required for visit portfrward
- Port-forward can help you out to set up port forwarding.There you can choose the router type and choose a program you want to set up port forwarding for, which is in our case is HFS.
Step 3: Test HFS
Now you need to test your settings before you start.Click the menu in HFS and choose self test.If the test completes successfully, your settings are correct and you are ready for next step, To point your web browser to your ip address.

Step 4: Register A domain
For setting up a web site, you need to first assign it a domain name.Domain name are aother name for a computer ip address.For this, you will need to a DNS service running on your computer which can be mapped to particular ip address.
- Create a Create a new user at No-IP account.
- Login to the site with the account you created.On the left-sidebar click on “Hosts/Redirects”
- Click on Add.In the page that opens enter domain name of your choice e.g “myfamilypics” and It will create a sub-domain on its own server that will work on your ip.

- Your IP is recorded when you add the domain name.If you ISP is blocking port 80, you can choose a redirect given under same page.
- Click on “Create host” and you are ready to roll.
- Access the same from your own browser.You can add your file In HFS and access the same.
Trust me I have done it and it works.But i cant give the link of my url ( as it is hosted on my computer) here keeping in mind the security issues which I am not aware of. SO you also should share it among your friends.
Step 5. Install The dynamic update Client
Skip this step if yo have a static ip.If you don’t, you will need a client software to take care of of your changing ip address.
- Download the No-Ip.com Dynamic DNS update client software.
- Install it and provide your login details.This program will sit in the system tray and automatically update your NoIp account when your external ip changes.
Step 6: Launch Your Website
You can now decide what page will appear when someone access your site, like the default page.To change the default page,
- Open HFS and click on “You are in Easy Mode ” to turn it to advance mode.
- Right click on little house icon on VFS and click on “Bind Root to Real Folder”.
- Now you can add files and folder here which you want to make available in your website.
- Next is when your site is ready send the address which you created in NO-IP or step 4 to all your friends.
- You can even see what others are viewing in advanced mode of hfs

This helped me a lot to understand how things work when my blog is hosted and how do my hosting service works.This was a Small example on low scale basis for you to try and for people who want to run there host on there own system.Do tell me your experience when you try it.I will be glad.
|
|
|
About The Author of this article: Ashish is one of the co-author of this blog and writes on various interesting softwares, PC tips and more. You can read more of his articles here. |
Enjoyed this article? Download our Toolbar ( for Free ) and read us more quickly or Free Subscribe to the Full RSS Feed or Get Post like this in your Inbox Free Subscribe via Email







Keep coming
Web-Developer Server Suite.
However I would update on this, that this might not be suitable for very high traffic.You can use it for light purpose.
But I wouldn’t personally recommend such implementation though, especially on a laptop; neither a PC. Putting all security, high traffic thingie aside, I too wouldn’t want my PC to get on fire
But I wouldn’t personally recommend such implementation though, especially on a laptop; neither a PC. Putting all security, high traffic thingie aside, I too wouldn’t want my PC to get on fire :)[/quote]
@hongkiat: I agree with you on this,It can be sued for personal use with friends.It might not handle the traffic and security issue.Thanks a lot for the comment.Keep visit
Gr8 article…really informative for as i have tried like this before but didnt knw abt the hfs thing only tried to do no-ip dynamic tool.
nyways thanks
I did exactly how it is mentioned…..But still its no working..When I type my ip address with the port number it times out…May be i am doing something wrong. Can anybody help me troubleshooting..Thanks….My email is masoommirage@gmail.com
i will use it with my friend but is it anything more secure ?
please help me
thanks
i did exatly as u hav mentioned in d steps .
nw how can i make a database for this home based server.
i am working on a project in my collage . its internet based home automation . i wanna know wil my website be browseable from mobile through gprs.
waiting for your reply…..
1. Since you are hosting it on home computer, you can connect this to any local database which is running in the local machine. The above steps just redirects your created domain ot your computer ip.
2. Search in google for “make mobile web page”. There are lot of links availble. You can use and see. If that doesnt work, I would suggest you to look around some books or online contents to look and search for
Hope this helps
You have a good idea and I accept that histing is costly too. But are you making a website for commercial purpose or Freinds and family. This article is best if you want to do some online projects or make a family site. However for commercial purpose its not as your computer will not be secured. Do tell us your need
Regards
Ashish
Please let me know your recomendations
There is one more person who is doing a project using this concept. I am waiting for his experience too.
Lets see what Suresh comes up with ?
Thanks Orlando
But, out of curiosity, would the Ubuntu Server work just as well? I am horrid with computer terms, so sorry if the answer blatantly obvious.
How much you can afford on hosting ?
Would like to say that Abyss Web Server X1 is the best free web server made. Can be down loaded here:
http://www.aprelium.com/abyssws/download.php
I use 2.5 it is awesome. Most steps above work the same with abyss. Thanks
email: jasonbay13@gmail.com
i want to know that how much minimum RAM required for this i have 256mb and pentium 4 cpu is it sufficient for making server????
and bytheway r u hosting this web “www.technospot.net” from your home server?and how can i got this domain “.net” ….???
http://www.portforward.com/english/routers/port_forwarding/UTStarcom/UT-300R2U/Http_File_Server-HFS.htm
I tried the program and it works fine , but when i enter my site , it doesnt enter the index.html page , it shows all the files in that folder.Now visitors will have to search the index.html to see the site i designed.
Is there a way to tell hfs to open the “main page” = index.html automatically
thanks .
basically, I want to control my home appliances with Linux.
Which technologies i need to use to make two way communication between server and clinet, inmycase
my embedded device need to take in put data from web browser( client).
Thanks
Naveen
I’ve saved your page to my favorites and would like to find out more about how I can build my own website.
Thank you for sharing.
Ramesh.
I am planing to host a small website for commercial purpose, but not online payments by credit cards etc., It is just hosting for information sharing. I have Airtel DSL broadband connection. I am also planing to have my own domain like xyz.com. I am planing to register my domain using dotdnr.com, but I would like to use my own PC for hosting. Please suggest/assist me to host my website on my PC. Also let me know how to get static IP for my PC?
Thanks in advance
But I cant come out from 2nd steep i e port test help me what to do i am using MTNL D LINK 502 T
—MTNL Mumbai
—Window Vista
Waiting for your reply else give me your contact no if posible so that i contact u to help me out from these steep
Once again Thanks
Thanks for an easy to understand article .
I’ve a doubt and I’m seeking your opinion .
Its related to a personal blog based on Wordpress.
I’ve my blog in a domain registered with 1and1.com. It costs me
$6.99 per year for the annual domain regitration fee.
If I use 1and1.com as my host it will cost an additional
$48.00 per year, which I’m trying to avoid!
I was wondering, ” if I go to the admin page of my domain
@ 1and1.com & edit the advanced DNS to redirect or point
it to my personal PC by using my IP’s static IP”, Will it work..?
thanks in advance.
m using mtnl broadband service, and my self test is never successful, pls help
i wonder if i can use this hfs to get access to my files, stored on my home pc, from work for instance?
thx!
HI ashish;
IT NOT DIFFICULT MAKE UR OWN SERVER BUT U NEED FRIST ALL GOOD PC WITH LARGE AMOUNT OF RAM AND HDD,AND LEARN MORE ABOUT TCIP AND UDP ACTUALLY I HAME NOT LOT OF TIME MAKE MY OWN SERVER BUT I THINK I WILL DO NEXT YEAR , THIS ONE JUST BECOUSE I GIVEN EXAM.I CAN SEND U BOOKS THESE BOOK ONLY IN RUSSIAN LANGUAGE IF U CAN UNDERSTAND JUST VIST ON http://WWW.INTUIT.RU
THANK AJAY
PS: Ajay you might get this as a new comment.
I am trying to host a website in my home PC. I do have a static IP, which i bought from BSNL recently. The Modem i use is ADSL modem. My Problem: When i ran a self test in HFS software, it is responding as “Test Failed” and it is commenting it as “You are behind your router. Ensure it to port forward to your computer”. I currently know how to login to the BSNL’s URL and i have familiarized with the interface. Where in need to configure the port forwarding in BSNL Modem’s server page……
FourPx