2

I just downloaded the latest XAMPP version installed it on my new PC. however I cannot access the local webserver via browser(Google Chrome) from another PC on my LAN.

I allowed MySQL and Apache through my Firewall. setup a static IP on my server PC. (192.168.1.130) I also changed the configuration of httpd.conf file

from

<Directory />
   AllowOverride none
   Require all denied
</Directory>

to

<Directory />
   AllowOverride All
   Require all denied
</Directory>

then I restarted apache.. still cannot access it via IP or Computer name.

Kim Carlo
  • 1,173
  • 3
  • 19
  • 47
  • How are you trying to access it, what is the URL? Which port number are you using? – Adder May 08 '17 at 09:21
  • I'm trying to access it on a browser by typing the IP address of the local server. `http://192.168.1.130` or `http://ComputerName` – Kim Carlo May 08 '17 at 09:24
  • Check the apache config files for the port number you are listening on. Default when using the browser would be 80. – Adder May 08 '17 at 09:25
  • it is listening on port 80 – Kim Carlo May 08 '17 at 09:25
  • Do you get an 404 or 500 error, or does it not connect at all? – Adder May 08 '17 at 09:26
  • I didn't get any errors.. it does not connect at all.. but if I ping (via CMD) the server IP from the other PC I did get a reply from the server.. I can also access the shared folders on the server – Kim Carlo May 08 '17 at 09:28
  • Did you set the proper network settings for LAN? – hungrykoala May 08 '17 at 09:31
  • @hungrykoala yes I did.. – Kim Carlo May 08 '17 at 09:32
  • 1
    @KimCarlo try [this](http://stackoverflow.com/questions/5524116/accessing-localhost-xampp-from-another-computer-over-lan-network-how-to) from what I remember i needed to do something like allow all in config for this to work – hungrykoala May 08 '17 at 09:35
  • @hungrykoala I already read that post.. I tried all the suggestions but nothing worked for me.. still searching for answers.. – Kim Carlo May 08 '17 at 09:37

1 Answers1

6

Okay so after tons of searches, I finally found an answer, here's what I did..

Go into the Windows Firewall settings and click the "Advanced" button, and in the next dialog click "Inbound Rules" - click "New Rule"

  1. In the rule type window, choose Port
  2. In the program window, leave All Programs selected
  3. In protocols and ports, leave protocol as TCP, and Local Ports should be "Specific Ports", enter 80,443
  4. In the scope window, don't enter any specific ip addresses
  5. In the action window, Allow the Connection
  6. In the profile window, leave them all ticked
  7. And finally, in the name, call it something useful, like HTTP_ports

credits to this link

Kim Carlo
  • 1,173
  • 3
  • 19
  • 47
  • Worked brilliantly! Incidentally, Step 4 is missing on my computer. I did not get the choice to provide an ip address scope. – Chiwda Jul 02 '18 at 14:13