无法访问本地网络上的 wamp 服务器

问题描述:

我想在本地网络上托管一个网站.出于某种原因,我只能在本地计算机*问 wamp.

I want to host a website on my local network. For some reason I can only access wamp in my local computer.

我的网络中有 2 台计算机.计算机 A 和计算机 B 都安装了 wamp 服务器.当我从计算机 B 键入计算机 A 的 IP 地址时,我能够连接到它.但是当我反过来做时,它就不起作用了!换句话说,当我从计算机 A 输入计算机 B 的 IP 地址时,浏览器会说:192.168.0.120 的服务器需要很长时间才能响应.

I have 2 computers in my network. Both computer A and computer B have wamp server installed. when I type the ip address of computer A from computer B I am able to connect to it. But when I do it the other way around it does not work! In other words when I type the ip address of computer B from computer A the browsers says: server at 192.168.0.120 is taking to long to respond.

为了解决电脑B上的问题我所做的事情:(记得我想从电脑A连接到电脑B)

Things that I have done in order to solve the problem on computer B: (remember I want to connect to computer B from computer A)

1) 关闭防火墙

2) 卸载 wamp 并重新安装.

2) Uninstall wamp and reinstall it.

3) 关闭杀毒软件.

4) 关闭 windows 防火墙

4) turn off windows firewall

5) 将 wamp 上线,上线后重启所有服务

5) Place wamp online and after putting it online restart all services

我没有更改任何 ini 文件,而且我已经卸载并重新安装它,为什么无法连接到它!?过去 3 年我一直在使用 wamp,但我从未体验过这种情况.

I have not chaged any ini file plus I have uninstall it and install it again so why is it not possible to connect to it!? I have used wamp for the last 3 years and I have never experienced this.

还有 wamp 是我在这台计算机上安装的唯一 Web 服务器.我的计算机上没有安装 IIS 或任何其他 Web 服务器.

Also wamp is the only web server that I have installed on this computer. I don't have IIS nor any other web server installed on my computer.

也许您的 Apache 仅限于本地主机.在您的 apache 配置文件中查找:

Perhaps your Apache is bounded to localhost only. Look in your apache configuration file for:

Listen 127.0.0.1:80

如果找到,请将其替换为:

If you found it, replace it for:

Listen 80

(有关 Apache 绑定的更多信息)