Accessing localhost (xampp) from another computer over LAN network - how to?

后端 未结 24 3365
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 14:01

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.

24条回答
  •  感情败类
    2020-11-22 14:28

    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 :

    1. Network Connectivity Issue :

      • First of all Check your network Connectivity using ping 192.168.1.56 command in command prompt/terminal on 192.168.1.2 computer.
    2. Firewall Problem : Your windows firewall setting do not have allowing rule for XAMPP(apache). (Most probable problem)

      • (solution) go to advanced firewall settings and add inbound and outbound rules for Apache executable file.
    3. Apache Configuration problem. : Your apache is configured to listen only local requests.

      • (Solution) you can it by opening httpd.conf file and replace Listen 127.0.0.1:80 to Listen 80 or *Listen :80
    4. Port Conflict with other Servers(IIS etc.)

      • (Solution) Turn off apache server and then open local host in browser. if any response is obtained then turnoff that server then start Apache.

    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.

提交回复
热议问题