Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently I have finished a PHP project that I have tested on my home computer using WAMP. I dont have any hosting online and would like to make my localhost remotely accessible.

For example, I want to make it possible for someone on the internet to access the website by typing in my IP or whatever.

Effectively I want to make my WAMP local setup remotely accessible. What is the best way of doing this?

Thanks Philip

share|improve this question

closed as off topic by MDMarra, sysadmin1138 Jan 23 '13 at 3:31

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Exposing a "home computer" to the net without really knowing what your doing is the shortest line from here to pwn3d. That said, you need to configure your router/modem/firewall/CPE to forward Port 80 traffic from it's WAN port to your computer's local IP. – Chris S Oct 26 '10 at 16:26
Yes, Chris S is right. It's definitely a security concern to run a PHP web server on your LAN and expose it to the 'net. Web hosting is cheap. It's cheap enough you should definitely give it serious consideration even as a hobbyist. – Aaron Copley Oct 26 '10 at 16:36
up vote 1 down vote accepted
  1. Presumably, you have a firewall blocking access to your home network. Note that this opens up your home network to security issues because you are opening a hole in your firewall. Keep your software up to date and be aware of security issues. You might be better off hosting this website at a hosting provider instead, which can cost less the $10 a month.

  2. Your home router probably receives a dynamic IP address from your ISP's DHCP server. Use a Dynamic DNS to direct a domain name to the IP. Dynamic DNS clients exist for Linksys routers, OpenWRT, Linux and Windows computers.

  3. Open up the firewall on your router or server and allow traffic through port 80 or 443. For security reasons, you probably want to limit access only from the client's IP address or the client's IP range, instead of opening up port 80 or 443 to the entire world.

  4. Use port forwarding to forward port 80 (or 443) to the IP address of the backend server, on port 80 (or 443). Most home routers support port forwarding.

share|improve this answer

Assuming this host connects to the Internet via a typical home router, you will need to forward the WAMP listening port to your internal/LAN IP for this computer. (You will need to refer to your router's documentation for specifics to your make/model.)

WAMP typically listens on port 80, but many ISPs will block inbound port 80 to keep you from hosting a web site at home. Just move it to another port such as 8080 if you have trouble. Your internal/LAN IP can be determined by running ipconfig from the command line.

After port forwarding has been setup, you can direct someone to your site at your external/WAN IP on port 8080. Ex:

An easy way to determine your external IP is to browse to:

share|improve this answer

I would also add that if you decide to go on with this project, that you consider disabling the ability for people to ping your machine from the outside using a hardware/software firewall. That would reduce your visibility to automated scanners.

I also agree with everybody else that it might be less of a headache if you went with a hosting service instead, especially if you have important information on this machine and/or your home network.

share|improve this answer

We built Forward for usage just like this. Forward gives you a publicly accessible url that you can share with anyone on the internet and it doesn't require you to setup port forwarding or anything like that.

Check it out at

Disclaimer: I worked on it.

share|improve this answer