Accessing localhost (xampp) from another computer over LAN network - how to? [closed]
Solution 1:
localhost is the name given to the IP loopback address 127.0.0.1. Every computer in a network has a localhost address that points to itself. To access your files on your main computer you can use http://192.168.1.56
. You could also edit the hosts file on the client(s) and assign a name to 192.168.1.56 edit /etc/hosts
(unixlike systems) or %SystemRoot%\system32\drivers\etc\hosts
for windows systems e.g.
192.168.1.56 homeserver.lan
then you will be able to access the server as http://homeserver.lan
Edit: From the comments below, the port was being blocked by a firewall.