使用其他设备访问 localhost(wamp)

Access localhost(wamp) with other device

我们知道如果我们在windows中打开wampmanager,我们可以在浏览器

中输入localhost127.0.0.1访问localhost

但是如果我们想在其他设备(手机或平板电脑)访问它,我们不能在浏览器中输入localhost

所以我们输入wamp所在的IP运行。

示例192.168.1.2:80

但是当我在浏览器中使用这个IP时,我看不到本地主机。

我在 httpd.conf 中更改了 IP,但它不起作用。

尝试禁用 Windows 防火墙。如果可行,请在防火墙设置中打开端口 80 并重新启用。