Hello, my name is: Amy

Allow Local Network Access to WAMP

I've made a few attempts in the past to allow my local network access to my WAMP server. Previously those attempts ended with me screwing around with my network settings to the point of no return. I've since cracked this problem by starting with this post on Stack Overflow and am eager to share this knowledge with my future self.

  1. Triple check that you are on the same network your WAMP server is on.

  2. Find your IP range by opening a cmd prompt and typing ipconfig. You are looking for the first three numbers in the IPv4 Address.

  3. Open up port 80 on WAMP computer

    1. Windows firewall with advanced security
    2. Inbound Rules
    3. Create Two New Rules, One for Protocol UDP, and one for TCP.
      • Rule Type: Port
      • Protocol Type: UDP / TCP
      • Specific Local Port: 80
      • Allow the Connection
      • Profile: Domain/Private
  4. Edit httpd.conf file (C:\wamp\bin\apache\apache2.4.9\conf) at the point below, paying special attention to the last two lines, Require local and Require ip 192.168.1.

  <Directory "c:/wamp/www/">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    # ...
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #

#   onlineoffline tag - don't remove
    Require local
    Require ip 192.168.1
</Directory>

Finally, Restart your WAMP server. On a different device, you should now be able to type in the full IP address of your WAMP server and connect successfully.

Comments