How to Make XAMPP Accessible on Local Network

by | Jun 24, 2015

If you’re looking for a solution of the question – how to access XAMPP on network or how to view website running on XAMPP from different computer, you can do it in the following manner.

In your xampppathapacheconfextra open file httpd-xampp.conf and find the below tag:


# Close XAMPP sites here

Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var

and add following like after Allow from ::1 127.0.0.0/8 {line}

"Allow from all"

In next step, you need to restart xampp, and you are done.

In recent XAMPP versions, the technique is a little different and you can access XAMPP on computers within a network by removing the following lines


#
# New XAMPP security concept
#

Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

Both the methods needs a restart (XAMPP or computer).

About Marshall
Marshall is creative head at Elicus and works with the team to bring ideas to life. He is strongly focused on delivering a quality experience to clients and customers.