Browse > Home / How To, Software, Web Hosting / Blog article: How to Host a Web Site from Your Computer

| Subcribe via RSS

How to Host a Web Site from Your Computer

September 11th, 2006 Posted in How To, Software, Web Hosting

In the following article I am going to show you how to host a web site from your own computer. Why would you want to do this you might ask? Well for one, it’s free. It’s also great for hosting small web sites or sharing large files with friends. However, if you are planning on running a site with high traffic I would not recommend this. Just follow these simple steps and you will have your own web server up and running in no time.

Step 1: Go to http://www.snapfiles.com/get/hfs.html and download HFS (Http File Server).

Step 2: Double-click the hfs.exe file that you downloaded. If you have Windows Firewall enabled you will be prompted with a security warning. Click “Unblock” to allow HFS to pass through the firewall.

Step 3: This is the tricky part. The default port that HFS uses is port 80. If your ISP blocks port 80 then you will need to change it to something else. To change it you must turn HFS off. You can do so by clicking the “On” button in the upper left corner. When you are done, turn it back on. If you are behind a router or firewall then you will have to set up port forwarding. If you need help with this go to http://www.portforward.com/. Here you can choose the type of router you have and then choose the program you want to set up port forwarding for such as Http File Server-HFS. It will walk you through the exact steps to set up forwarding.

Step 4: Now you can test your settings to see if they work. Go to the menu and click “Self Test”. If it is successful then your settings are correct. You should now be able to point your web browser to your IP address to see files or pages you are sharing.

Step 5: Now I’m going to tell you how to assign a domain name for your web site. Since you don’t have a DNS server running on your computer, you will need to get DNS service from somewhere else. To do this, we are going to use a service called DynDNS. DynDNS offers a variety of subdomain names to use for free for your website. Go to https://www.dyndns.com/account/entrance/ to create a DynDNS account. Login with the account you have created and click on the services button. If you have a dynamic IP address that changes, click on “Dynamic DNS” and then “Add Dynamic DNS“. Choose a subdomain and domain name. Then add the host. Now you have a domain name that you can use and give out instead of your IP address. If you would like to use your own domain name, DynDNS offers a custom DNS service for this as well for a yearly fee.

Step 6: Now go to https://www.dyndns.com/support/clients/ to download the DynDNS Updater. This is to automatically update your Dynamic DNS account in case your external IP address ever changes.

Now you can host a web site from your computer. If you want to change the default page that comes up when you browse to your site, right click on the little icon that looks like a house in the Virtual File System. Click “Default file mask…” and type the name of the file that you want to be served when someone browses to your website such as index.html. If you would like HFS to start automatically when you log into Windows, put a shortcut to it under Start – Programs – Startup. Also be sure to save your Virtual File System settings so HFS will remember the files you are hosting next time you open it up. If you have any more questions check out HFS’s Frequently Asked Questions.

If you enjoyed this post, make sure you subscribe to my RSS feed!



Other Posts You Might Like:

61 Responses to “How to Host a Web Site from Your Computer”

  1. Pranav Says:

    Hi there.. this guide is simple yet extremely good!! Please let me know anything more about hosting from home if possible.. I want to host a forum also.. please can you tell me how to do that? Also, how to make a professional File/Image Hosting websites like rapidshare.com and imageshack.us ? please do let me know.. mail me at pranav_s_2000@yahoo.com

    Reply


  2. Casey Says:

    Hello Pranav,

    Thanks for the comment. I really appreciate your feedback. I have never attempted to host a forum or image hosting service from my computer but I’m sure it is possible. Let me see if I can find any articles on this and if so, I will email them to you. Just remember if you plan on having a lot of traffic you should look into using a professional hosting service because this could overwhelm your computer and bandwidth. This would especially be true with a forum or image hosting service.

    Reply


  3. stealer_hunter Says:

    some one stole your content !
    http://www.technospot.net/blogs/index.php/2007/01/31/host-a-web-server-on-your-home-pc/

    Reply

    cameron Reply:

    btw they did not steal his content. To be honest the one there is more clear and legibil writing.

    Reply


  4. Hans Jürgen Hoffmann Says:

    Hi Casey,
    lovely website!
    What risk is associated withopening up my computer to the access required to run a website?

    Reply


  5. Casey Says:

    Hello Hans,
    Thanks for your comment. Rejetto, the maker of HFS, has a writeup about this on his wiki. http://www.rejetto.com/wiki/index.php?title=HFS:_Secure_your_server I hope this answers your question.

    Reply


  6. Hans Jürgen Hoffmann Says:

    Thanks – my website is up and running :-)

    Reply


  7. Mr.AyMaN Says:

    Hi Casey,

    I’am AyMaN From Egypt

    Thnx For these lovely website

    And Lovely articles :)

    Reply


  8. Crampon Says:

    Hi Casey

    Thanks for your help. Your instructions were really easy to follow and have made my life a whole lot easier.

    Reply


  9. pork Says:

    Hello Casey
    great article. Thier are a few that exsplain this and you sead it best. Thanks for the help and good luck to all

    Reply


  10. Ryan Says:

    Hey Casey

    Is it possible to set this up when connect to a LAN?

    Reply


  11. Casey Says:

    Hey Ryan,

    Yes, as long as your router or ISP is not blocking the port you are trying to use.

    Reply


  12. Ryan Says:

    How do you find out what kind of router or what port to use?

    Reply


  13. Casey Says:

    Hey Ryan

    You have to log into your router to open ports. This means you will need to know your router’s address and its username and password. Your router’s address is usually the same as your default gateway address. Follow the instructions in Step 3 to help you configure your ports. Hope this helps.

    Reply


  14. dpro Says:

    great! many thanks how do I install apache, php and mysql?

    Reply


  15. dpro Says:

    I found this one for web developers using WAMMP
    WAMP-based [Windows, Apache, MySQL, PHP]

    http://www.devside.net/

    Reply


  16. Lloyd Says:

    Hi Casey, I’m very glad I stumbled across your site this morning…excellent stuff!

    Among a few other contributions I made this morning, here’s a little clarification about your comment above: “If you would like HFS to start automatically when Windows starts put a shortcut to it under Start – Programs – Startup.”

    This is only 90% true as apps located in any Start + Programs + Startup only get launched when that user logs into Windows. To have an app start up when the machine starts, you need to either run it as a service or add a reference to the app into the registry for auto-startup. There are apps such as that found in Microsoft’s Resource Kits that allows you to run any desktop app as a service, too; most aren’t free, but some are.

    Reply


  17. Casey Says:

    Hey Lloyd,

    Very good point. I went ahead and corrected my wording based on your comment. Thanks!

    Reply


  18. Jason Says:

    Hello Casey,

    Thank you for the information! I don’t know too much about this yet, but here is my question: I currently have a dynamic IP, how big of a problem is this with running a website like this? The website is for a store, and should ideally be up 24/7, is there a script or something that can check and update the ip so that i dont have to manually do it and the webpage will be kept up todate?

    Also I dont think we would receive high traffic, but any thoughts on how much traffic is too much for this kind of set up? I can see what kind of traffic we have had based on logs on our current site, and see if this would work for us.

    Thank you very much! – Jason

    Reply


  19. Jason Says:

    Sorry! I didn’t read the whole post and see that my first question is already completley answered!

    Thank you!

    However, if you still wanted to address my question about traffic I would appreciate it :)

    Thank you – Jason

    Reply


  20. Casey Says:

    Hi Jason,

    I think the amount of traffic that your site will support depends on lots of different factors. For one, it depends on how much content is on the site itself. Another factor is the speed of your internet connection and the type of computer you are using to run it. If you are trying to run a business website, I definitely would not recommend using this. However, if it is just a personal website, something that you will be sharing with friends and family, I believe you will be ok. Hope this helps.

    Reply


  21. Musicaddict Says:

    Casey-great article,very cool info! I was able to easily setup as you describe. Question if I may? What about running an application? For example, if I wanted to run a media player to host an “internet radio station”, but for max of 3 connections (basically just for some friends). Would that be possible? I know of sites/utilities to do that specifically, but for a more “wide” audience and I would like to keep in this simple/low bandwidth vein.

    Thanks very much!

    Reply


  22. Shad Says:

    Nice!!! With this tutorial I was able to easily set up a server to host a website on. Thank you so much!!!!

    Reply


  23. Marc Caballero Says:

    I love you!!! Casey, you rock!

    Reply


  24. Hoon Says:

    Hi

    I was unable to download the HFS executable file.

    http://www.rejetto.com/hfs/?f=dl

    Says that Error 404: File Not Found.

    Please help! Thanks :D

    Regards
    Hoon

    Reply

    Casey Reply:

    Hi Hoon,

    The download page on their site seems to be broken so I updated the link to point to another site where you can get it. Enjoy!

    -Casey

    Reply

    Stepie Reply:

    I was unable to download the file too, but my anti-virus blocked it, it sais a varaint of a web server or somthing like that. I’m using ESET Nod32 Anti-virus, could you maby emial me…

    Reply


  25. Hoon Says:

    Hi Casey

    Thanks for your speedy reply, I have clicked on the site, sure looks alright, but my company site blocked it!

    The message was

    Access Denied (policy_denied)
    This website is blocked by Company’s content filtering policy. For enquiries, please contact your IT representative.

    For assistance, contact your network support team.

    Possible to send this exe file to my hotmail addy? Zipped or renamed so that it’s not filterend / blocked by hotmail?

    Thanks heaps :D

    Best regards
    Hoon

    Reply


  26. Jaap Says:

    thank so much, it is useful for us

    Reply


  27. CJ Says:

    Hi Casey,

    Now i am working on dynamic web site by asp.net with database as well. I browse through the messages above, and i found out that the first comment is looking for the same thing as i do. Could you help me on this manner? Please mail me at oldshoes81@yahoo.com. Thank you.

    Reply

    carter Reply:

    hi, i have the same problém as you, so if you found a solution with HFS, please tell me, or if you found an other way to host your ASP pages, please e-mail me : k2m59@hotmail.com

    Reply


  28. Kyle Says:

    This will not let me host images… could someone give me a tip?

    Reply


  29. kevin Says:

    I got a question concerning HFS i followed the tutorial and i got it to work but i was wondering how do i secure it and also when i go to my website it goes there but after that it shows my ip address and the port number which i dont want it to show but i went to my no-ip.org account domain name which is kickasskevinnader.no-ip.org and if i set it to forward my domain name to my ip address then it goes straight to my router not my website or port 8000 i have to set it to redirect to my ip and if i do that it will show my ip instead of my url. please help me. But your tutorial helps a lot thanks.

    Reply


  30. Harsh Says:

    hi there,
    very nice info, i just loved em and defntly gave it a try, my question is how to have joomla running on the server we just created…??
    thanx

    Reply


  31. Jensina Says:

    Hi Casey,

    The website for the DynDNS has changed for creating an account. It is https://www.dyndns.com/account/entrance/

    Thanks for the great info!
    Jensina

    Reply

    Casey Reply:

    Thanks Jensina, I have updated it :)

    Reply


  32. Jensina Says:

    My absolutely free website is now up and running! Follow Casey’s guidance and you can really do it yourself. I would share the web address except the site is run off a server in my home and I don’t think my ISP would like a whole lot of traffic at this point, it’s just an advance linkshell website and forums for FFXIV :)

    Reply

    Casey Reply:

    Awesome! I’m glad I could help out :)

    Reply


  33. manu Says:

    hi, can i use smart ftp or is necessary to use HFS? thx :)

    Reply

    Casey Reply:

    Hi Manu,

    Unfortunately, HFS does not support FTP at this time.

    http://www.rejetto.com/wiki/index.php/HFS_Frequently_Asked_Questions_%28english%29#Will_HFS_support_the_FTP_file_transfer_protocol.3F

    Reply


  34. Eli Says:

    Is this for servers. When i followed your instructions it was a server, not a website!

    Reply

    Casey Reply:

    Eli,
    I’m not sure I understand what you mean. This program allows any computer (ie your desktop) to host a website. So, in a sense, your computer becomes a web server. Hope this helps.

    Reply


  35. shivraj Says:

    please help me,,,,,,,
    i am using dna-a211-1,, when ever i enter the web site name it returns me the router page and not the web site.

    help
    help
    help

    Reply


  36. shivraj Says:

    i had done the port-forwarding but it is not working.

    Reply


  37. Valentin Says:

    Hi, nice article. It works good but I’m having a problem with changing the index.html. I right click on the little house but the only options I see are:

    Add Files…
    Add Folder form disk…
    New empty folder
    Copy URL adress
    Set user pass
    Upload

    I don’t see the Default file mask… I would appreciate much the help. Thanks!

    Reply


  38. William Says:

    Thank you so much for this tutorial!!!
    Although i had to change my port from 80 to 1337 lmfao.
    Again, thank you. I am ever glad that this worked.
    You have just made my day. :D
    1337, leet. lol.

    Reply

    Casey Reply:

    Hi William,

    You are very welcome. Glad everything is working for you.

    Reply


  39. peter Says:

    Its quite trmendous reading this article on how to host a wbsite.

    I have tried to build a website using Dreamweaver,please kindly throw more light on how to get a domain name and possibly more articles on webhosting.

    my email is awurumnonye@yahoo.com

    I actually need an IT mentor to guide me in my quest for ICT wisdom and knowledge acquisition.

    Thanks

    Reply


  40. Shivraj Says:

    hello every one..
    please .please tell me . this thing does not work with me … i can only see my web site at my home .. but when i got my friends computer it does not show any thing……

    why?????

    and i need to host a asp.net web site at my computer … is it possible?????

    please send me answers .. i really need it….

    thankx for reading…

    Reply

    riverflow Reply:

    I realize this is quite late, but for anyone else with this question:
    All websites require a server. Almost all professional/business websites rent out their domain and it runs off of the domain host’s server. Since this is YOUR website using your own computer as the server, you will need your computer to be on, connected to the internet, and running HFS in order for the site to be functional.

    Reply


  41. Chris Says:

    Thanks for that. It works great. :-)

    Reply


  42. job at home Says:

    I like design of your site What is the name of template ?

    Reply


  43. Mayank Says:

    hi everybody!

    I wanna start a social networking website(with email and other facilities) with static ip address and a domain name using my system’s local disk.

    I want to deploy *.net (.aspx files) and SQL 2005 server.

    pls tell me this all wud cost me how much?

    Reply


  44. Francesco Says:

    Hello! Why do you not recommend this if i’m running a high-traffic site?

    Reply


  45. Dhruv Jain Says:

    when ever i enter the web site name it returns me the router page and not the web site.can someone explain me

    Reply


  46. router address Says:

    Really good write-up, but this wouldn’t appear to be compatible with my router ip address, any advice?

    Reply


  47. Alex Thomas Says:

    so how do i get a standard www. example . co.uk or .com domain using this methord? many thanks, hope this thread isntdead

    Reply


  48. cameron Says:

    you may also use co.cc for it and its free!

    Reply


  49. bappaditya Says:

    i have a website in hostgator. but they create huge problem i want to host this in my own computer . easiest way to do what?

    Reply


  50. bappaditya Says:

    Really good write-up, but this wouldn’t appear to be compatible with my router ip address, any advice?

    i agree on that point.
    after reading few article i decide to give up the idea
    http://celebrityphoto.in/ of hosting my website in my computer

    Reply


  51. virendra Says:

    Hi there.. this guide is simple yet extremely good!! Please let me know anything more about hosting from home if possible.. I want to host a forum also.. please can you tell me how to do that? Also, how to make a professional File/Image Hosting websites like rapidshare.com and imageshack.us ? please do let me know.. mail me at vppatel951@gmail.com

    Reply


Leave a Reply