gpt4 book ai didi

apache - 如何从我的手机访问我的 XAMPP?

转载 作者:行者123 更新时间:2023-12-04 17:45:16 25 4
gpt4 key购买 nike

几个月前我已经遇到过类似的问题:Why my access from my mobile to my computer network doesn't work?

但这一次我无法解决我的问题。我已经更改了我的计算机和网络(但它仍然是家庭网络),所以我认为这可能与配置有关,但我无法使其正常工作。

我已经有了:

  • XAMPP运行两者 ApacheMySQL .
  • Apache正在端口 80 上运行。
  • 我在我的防火墙上允许了一个新的输入规则,以允许该端口上的连接。
  • 我已经将手机和电脑连接到同一个网络。
  • 我去了CMD并使用命令 ipconfig查看我电脑的IP。
  • 我已经把上一步得到的IP放到了我手机的浏览器上。

  • 我尝试过的更改 httpd.conf文件:
  • 更改于 <Directory />指令 Require来自 deniedallow .
  • 之前 Listen 80我放的行 Listen IP of my computer:80 .

  • 我的电脑上有 Windows 10 .

    我可以证明哪些配置可以解决这个问题?我看到很多与同一问题相关的问题,但其中任何一个都解决了我的问题。

    提前致谢!

    最佳答案

    您需要 ngrok

    在控制台/终端运行

    ngrok http 80

    你会得到类似的东西:
    ngrok by @inconshreveable

    Tunnel Status online
    Version 2.0/2.0
    Web Interface http://127.0.0.1:4040
    Forwarding http://92832de0.ngrok.io -> localhost:80
    Forwarding https://92832de0.ngrok.io -> localhost:80

    Connnections ttl opn rt1 rt5 p50 p90
    0 0 0.00 0.00 0.00 0.00

    手机端浏览器打开 the link like this that appears at the console

    关于apache - 如何从我的手机访问我的 XAMPP?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37083052/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com