How to access the web content from one machine to another using WAMP


Here are the steps to make WAMP enabled on LAN or WAN:

Before executing the steps you need the machines two be connected on same network(LAN)

Step 1

First you need to set up the WAMP service on your server and on the required services. And make sure that your WAMP server is online and it’s running on your browser using any specified port http://localhot:8081/ (I have given a fixed port number 8081 to my WAMP server). to provide this use the below steps
To run the WAMP Apache server on your specified port, do the following. Go in the\wamp\bin\apache\Apache2.2.11\conf\httpd.conf file and search for “#Listen” and then change the port from 80 to 8081 and in that case, your URL will be http://localhost:8082/. Like below:  

#Listen 12.34.56.78:80
Listen 8082

Step 2

Now make the WMAP Server accessible in the LAN or WAN, you have to get\wamp\bin\apache\Apache2.2.11\conf\httpd.conf and open it and find the following code:

<Directory "cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
   Deny from all
</Directory>
And change the above code to:

<Directory "cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
   Allow from all
</Directory>

By default the directory will have the settings enabled(just check for confirmation)

Step 3

The next step is to open port (8082) of the server such that everyone can access your server. This depends on which OS you are using. Like if you are using Windows 7, follow the below steps.
Open Control Panel  >> System and Security >> Windows Firewall 
then click on “Advance Setting”
  select “Inbound Rules” from the left panel
click on “New Rule…”
Select “PORT” as an option from the list and then in the next screen select “TCP” protocol and enter port number “8082” under “Specific local port” then click on the ”Next” button and select “Allow the Connection” and then give the general name and description to this port and click Done.
Now you are done with PORT opening as well.

Step 4:

“Restart All Services” of WAMP and click on "Put Online" button from the WAMP menu( if the Wamp is off you would not be able to access the content on other machines)

1 comment:

  1. Hi can u plz update how to share screen through VNC on Mac

    ReplyDelete