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.
I am Fully agree With BugFinder.
In simple Words, just put ip address 192.168.1.56 in your browser running on 192.168.1.2!
if it does not work then there are following possible reasons for that :
Network Connectivity Issue :
Firewall Problem : Your windows firewall setting do not have allowing rule for XAMPP(apache). (Most probable problem)
Apache Configuration problem. : Your apache is configured to listen only local requests.
Port Conflict with other Servers(IIS etc.)
if all above does not work then probably there is some configuration problem on your apache server.try to find it out otherwise just reinstall it and transfer all php files(htdocs) to new installation of XAMPP/WAMP.