How to access WAMP server from other computer or internet

1 / 3046
Many times we may require to expose WAMP to other computers in the same network or other networks or maybe internet. A typical use case for this is sharing data kept on a PC across a network or internet for eg. movies, music, presentations or any other data. WAMP by default has restricted access to outside entities which can be configured by changing httpd.conf file settings as shown below:- Click on the WAMP logo on system tray and select httd.conf as shown in the image below:-
wamp

wamp server

  Once you open the file you need to make the following changes to make your machine accessible from the internet using the IP address of the machine Search for onlineoffline tag don’t remove in httpdconf file and add the below lines Require IP <your IP address> Allow from all To find your IP address, type ipconfig in cmd line windows and pick up the IP address first three digit blocks and replace at <your IP address>  shown above (in httpdconf file). For eg, if your IP address is 10.0.0.124, substitute 10.0.0 there Search for C:\wamp\xxxxx in the httdconf file and make sure it has the following lines added:- Order allow,deny Require all granted. Also replace all occurrences of deny all to allow from all in the httpd.conf file. Once that’s done, go to the browser and type http://<your_ip> and it should be accessible from other computer in your network. If you want to bind a particular port for incoming connections to WAMP, search for Listen in httpd.conf file and add the following line:- Listen <your_IP>:<port_no> The following short video covers the gist of the above post.   While following the above directions, one may come across access to root directory forbidden 403 error. This error happens because of failing to specify the WAMP server IP in httpd.conf file @ Require IP command in the file. Make sure you don’t forget to specify your IP first 3 slots against Require IP as Require IP xx.xx.xx.  Following short video explains how to get rid of 403 forbidden error due to reasons other than the one mentioned above You can also setup virtual host on your wamp server so that you can access it by name rather than IP from anywhere. I will cover that in the next blog. Stay tuned. Don’t forget to share and subscribe to our blog. Leave your valuable comments at the bottom of the blog in the comment section  

Comments

comments


An avid reader, responsible for generating creative content ideas for golibrary.co. His interests include algorithms and programming languages. Blogging is a hobby and passion.

Related Posts

Comments are closed.