Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Please help, I don't have any idea on how to host a webpage on a home network. Its just in a home network with 3-4 computers connected with a hub. And I've already installed wampserver on the computer that will host the pages. Im using windows 7 ultimate(the 2 computers)

share|improve this question

migrated from serverfault.com Jun 8 '10 at 1:26

This question came from our site for professional system and network administrators.

    
Do you want people on the internet to have access to this website or do you only want other computers in your home network to have access? You would not have to change any settings in the router if you only want people in your home network to have access. –  James T Jun 8 '10 at 3:43
    
Only limited to home. –  soul Jun 8 '10 at 7:45
    
Your question could cover novels. Can you be more specific? What do you mean by 'Setup a site'? –  Nitrodist Jun 8 '10 at 19:01

3 Answers 3

up vote 1 down vote accepted

I would suggest you start with a prepackaged solution like Bitnami Lampp. Try http://bitnami.org/stack/lampstack. In there you have anything to setup a lampp server very easily.

Regards.

share|improve this answer
  1. You'll probably need to configure your home dsl/cable router to port forward http (tcp 80) or https (tcp 443) requests to the internal address of your webserver.
  2. If you have a dynamic public IP address, you'll need to setup some type of dynamic dns (dyndns.com). It will map your dynamic public IP address to your domain name and update it each time you get a new dynamic IP address from your ISP.
  3. If you have a static public IP address from your ISP, then you don't need dynamic dns. If you have a static public IP address then you need to make sure your domain name goes to your public IP address. Most likely which ever registry you used to purchase your domain can help you do this.

I am not sure what type of service you get from your local ISP. But if you have basic dsl/cable internet, then the above will get you up and running.

share|improve this answer
    
Is dyndns free? Because I've tried to set it up once, but all I see is paid service, donations, etc. There's nothing free?Its only for home, I don't plan on making it available on the net. –  soul Jun 8 '10 at 7:47
    
The poster indicates in the comments that this is for his/her local network. These steps aren't necessary. –  Nitrodist Jun 8 '10 at 19:00

I don't know how to configure wampserver. I've had a little experience with IIS (from microsoft) and Apache.

Once you have wampserver configured, you should be able to access your site from the computer doing the serving by opening up your web browser and typing in "localhost" or "127.0.0.1" as the web address.

You will need to open up port 80 in your firewall on your machine. If you are using microsoft's firewall, then you can find the firewall settings in control panel. If you are using a 3rd party firewall or a firewall that might have come with your antivirus, then you will have to figure out how to open up port 80 in that software. You do not need to open up any ports in the router.

(If you want your site to be public to the world, you can set your router to forward requests to port 80 on your router to the web server)

Now that the firewall is opened up, you should be able to access your website by putting the IP address of your web server in the address bar of client machines in the same network. Type ipconfig in the command prompt of the system running wampserver to get it's IP address. You may also be able to use the hostname.

Corporate offices usually have DNS servers internal to their network that let them control what name all the workstations and servers on the network respond to. If you would like your website to respond to www.youraddress.com, then you'd need to set up a DNS server on one of your computers and configure all the workstations to use your local DNS server. If you dont want to set up a DNS server, you can just update the \windows\system32\Drivers\etc\hosts file on all the client machines to point www.youraddress.com to the IP address of the computer running wampserver or as stated before, you can just use the IP address or hostname to connect to the site from client machines.

I hope this helps. Good luck!

I hope this helps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.