I'm developing PHP and I use WAMP.

How can I set my stuff up in order to be able to see my PHP just by typing my computer's IP into the address bar of a browser?

I'm running Windows Vista with the latest WAMP and I use a dlink router.

link|improve this question
feedback

migrated from serverfault.com Mar 22 '11 at 22:13

This question came from our site for system administrators and desktop support professionals.

3 Answers

If you have the service running it should be able to recognize the request. You will probably have to open a hole in your firewall for it to be able to communicate though. Port 80 is for http traffic.

link|improve this answer
feedback

IF your WAMP stack is setup correctly AND your php-based code is installed in the right place, you should be able to see it in operation by pointing your browser to its own host machine eg: http://127.0.0.1 or http://localhost

link|improve this answer
feedback

You need to configure your modem/router for forward your port:80 to your development computer's network ip address.

Example Config:

  • Wan Port:80
  • Lan Port:80
  • Lan Address: 192.168.1.23

More Info: http://en.wikipedia.org/wiki/Port_forwarding

link|improve this answer
1  
This isn't true. Port forwarding allows someone from the outside to access resources in a NATed environment. Adding this will allow people from the outside to go to your public ip and access your server on port 80. – mattimus Mar 22 '11 at 22:27
1  
He says he use a dlink router and he wants to type the ip address to the browser. It is not so clear to understand what he really wants, localhost access or outside world access. – webhasan Mar 23 '11 at 9:18
feedback

Your Answer

 
or
required, but never shown