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.
Triple check that you are on the same network your WAMP server is on.
Find your IP range by opening a cmd prompt and typing
ipconfig. You are looking for the first three numbers in the IPv4 Address.
Open up port 80 on WAMP computer
- Windows firewall with advanced security
- Inbound Rules
- 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
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 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.