Hello, Wondering if somebody could help me with this please, i have done some searching already but have not come up with an answer. I have my computer (compA) setup with XAMPP, i access the site on compA using localhost. i would like to be able to access the website from another computer on the network (compB). Now localhost on compB doesnt point to the correct IP address so i assume that i have use a different IP to access the website from compB.
I have shared the htdocs folder (compA) across the network and can access from compB i just cannot get the website to display in a browser. i have gone to /security in the htdocs folder and i have permissions set to anyone across the network can access it.
You can use the "hosts" file on your comps to define a domain name for use while testing if you like. Point the domain name on compA (your server) to "localhost" or "127.0.0.1" and point the same domain name on compB (client comp) to the LAN IP address of your server.
The location of the hosts file varies, but the filename is always the same regardless of the OS... Just "hosts" - all-lowercase and no file extension.