Steps to follow so that your PHP application is installed on the local network.
Define the IP , in this case you have 192.168.1.3
Open the file httpd.conf
with block of notes, it is located at: XAMPP>apache>conf>httpd.conf
Find Listen 80
, something like this: #Listen 0.0.0.0:80 / 12.34.56.78:80
Change that IP to the IP you have in point 1.
Save the file httpd.conf
verifying that the server points #Listen 192.168.1.3:80
In all your application that you make use of a variable of localhost
, replace it with the IP of the server that we defined in point 1.
Now, if you have the firewall enabled, you must add an exception to port 80 and 8080 of the protocol http
Control Panel> Windows Firewall> Allow a program to communicate through windows firewall> Add another program Name: http Port: 80 Add one more as http - 8080
On the other hand, if you're looking for a temporary and simple testing environment, I recommend you use: Cloud9
You can generate a temporary url of your project that will be visible until the service is turned off and you have to start it again.