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

后端 未结 24 3417
爱一瞬间的悲伤
爱一瞬间的悲伤 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:17

    it's very easy

    1. Go to Your XAMPP Control panel
    2. Click on apache > config > Apache (httpd.conf)
    3. Search for Listen 80 and replace with Listen 8080
    4. After that check your local ip using ipconfig command (cmd console)
    5. Search for ServerName localhost:80 and replace with your local ip:8080 (ex.192.168.1.156:8080)
    6. After that open apache > config > Apache (httpd-xampp.conf)
    7. Search for

         
             AllowOverride AuthConfig
             **Require local**   Replace with   **Require all granted**
             ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
         ```
      
      
    8. Go to xampp > config > click on service and port setting and change apache port 8080

    9. restart xampp
    10. then hit your IP:8080 (ex.192.168.1.156:8080) from another computer

提交回复
热议问题