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.

I want to share my PHP App running on WAMP with my friends from my Home PC,
Is there any way?

As every PC has an unique IP Address can that be used in any way to act like a server [a tiny one]?

share|improve this question

migrated from serverfault.com Jun 4 '11 at 2:39

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

1  
Read the FAQ, please. ServerFault is for professional sysadmins. This will get automatically migrated over to SuperUser, so please do not post a duplicate question there. –  EEAA Jun 4 '11 at 2:29
    
By default, in a typical home environment, all computers have a unique IP, what is important is whether they are public or private and if they are static. Chances are you just need to set up port forwarding on port 80 to whatever computer is running WAMP and your friends can then connect to your public IP to see your PhP app. –  MaQleod Jun 4 '11 at 3:24

4 Answers 4

up vote 1 down vote accepted
  1. Register a domain name (it's about $10/year). I would use Namecheap over GoDaddy.

  2. You are probably on a "dynamic" IP address which can change day-to-day (vs a static IP which does not change). You'll need to get a Dynamic DNS client from someone like no-ip.com, then set your domain's DNS to use the no-ip's nameservers, and run the no-ip client on your system which will sync your domain name with your changing IP address.

  3. You'll need to "port forward" port 80 WAN (outside) to LAN IP of system, that way requests coming in are forwarded to your system... But you only have to do this if you have a router.

  4. Windows has a Firewall application that will block incoming port 80 (the HTTP port). You'll need to unblock that port.

  5. There are different WAMP packages. Some are better than others. WampDeveloper Pro is the one I use. It's commercial grade designed for production. Some of the others that are free and mostly for testing are Xampp and WampServer.

share|improve this answer

You could set up a lightweight webserver package for Windows like xampp. Then, you can configure xampp to be accessible to outside devices (by default it only responds on localhost, but you can change that easily in its settings interface). You'd then need to configure your router to forward port 80 to the correct computer, if you have a router.

Edit:
This question here on SU also have a lot of information: What is port forwarding and what is it used for?

share|improve this answer
    
how to do these steps configure your router to forward port 80 to the correct computer, ? –  Sourav Jun 4 '11 at 5:11
    
This depends on your particular router brand and model - there are a lot of guides at portforward.com. –  user55325 Jun 4 '11 at 5:17
    
If you follow the link... it's a link to portforward.com. –  jcrawfordor Jun 4 '11 at 6:01
    
Haha. I can't believe I forgot to link to that other question. I wrote half of that answer. >.< –  jcrawfordor Jun 4 '11 at 19:58

Try localtunnel or showoff.io -- they were designed for exactly this purpose ("the easiest way to share localhost web servers to the rest of the world").

share|improve this answer

You can install Xampp on a separate box. Set the IP address as fixed like 192.168.1.200 . Then the other local computers can use it. In the browser address line put 192.168.1.200 . Here is a link to the Lite version. http://download.cnet.com/XAMPP-Lite/3000-10248_4-75157363.html

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.