Apache + WAMP
Accessing WAMP Server from other computers on LAN
Published on September 13th, 2020
Whenever you develop a website using the LAMP or WAMP stack, you'll want to access the website, locally, via different systems and devices solely for testing purposes.
Modify your VirtualHosts configuration
Setting up your WAMP Server for LAN access only requires you to tweak your VirtualHosts configuration file found in
<VirtualHost *:80> ServerName example.test ServerAlias example.test DocumentRoot "c:/wamp64/www/yourprojectname" <Directory "c:/wamp64/www/yourprojectname/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost>
Oh, if you're using Linux, you'll find the file
Update your hosts file
If you type the URL of the website that you want to visit, the computer will first refer to the
hosts file and then it'll go out to fetch DNS information. So, if you want
http:\\example.test url to point to your local system, you just have add it in your
Open the hosts file(
C:\Windows\System32\drivers\etc\hosts) using a text editor and add this line to your
Once done, save the file and restart your WAMP Server and you're all set to go!
Hope you found this tip useful!