I have just set up a wi-fi network at home. I have all my files on my desktop computer (192.168.1.56) and want to access localhost over there from another computer (192.168.
it's very easy
Search for
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig
**Require local** Replace with **Require all granted**
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>```
Go to xampp > config > click on service and port setting and change apache port 8080
These are the steps to follow when you want your PHP application to be installed on a LAN server (not on web)
Note: If firewall is installed, ensure that you add the http port 80 and 8080 to exceptions and allow to listen. Go to 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
If IIS (Microsoft .Net Application Internet Information Server) is installed with any Microsoft .Net application already on server, then it would have already occupied 80 port. In that case change the #Listen 192.168.1.193:80 to #Listen 192.168.1.193:8080
Hope this helps! :)
Host in local IP,
Open CMD : ipconfig
Wireless LAN adapter Wi-Fi: IPv4 Address. . . . . . . . . . . : xx.xxx.xx.xxx
Go to xampp-control in the Taskbar
xampp-control -> Apache --> Config --> httpd.conf
Notepad will open with the config file
Search for
Listen 80
One line above it, there will be something like this: 12.34.56:80
Change it
12.34.56:80 --> <your_ip_address eg:192.168.1.5>:80
Restart the apache service and check it, Hopefully it should work...
First Go To Network and Sharing center of your windows machine.and Just follow some steps to get your IPv4 address.
Put the IPv4 adress on another computer browser. example,http//192.168.0.102
Note
Replace
Require Local
with Require all granted
in xampp\apache\conf\extra\httpd-xampp.conf
file.