本文介绍了公用IP网页“连接超时";当连接到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我在运行Windows 7的服务器PC上制作了一个网站服务器.我使用了WampServer,并按如下所示对其进行了配置:

Recently, I made a website server on my server PC running Windows 7. I used WampServer, and I configured it as follows:

  1. 下载并安装WampServer.
  2. 选中 http://localhost (有效).
  3. 编制必要的HTML文件.
  4. 将其放在"www"目录(WampServer的HTML文件默认目录)内
  5. 转到 http://localhost 以查看它是否起作用(是的,它可以起作用).然后右键单击WAMP通知并将其置于联机状态".
  6. 转到我的主计算机,然后转到http://[服务器的本地IP地址]-计算机] ,看看它是否有效.做到了.
  7. 现在,我将httpd.conf配置为请求全部授予"
  8. 接下来,我继续前进.我的路由器是Frontier Netgear路由器.
  9. 我转到192.168.254.254(边境的路由器地址)>防火墙设置>端口转发>添加
  10. 我选择了万维网(HTTP)"和确定".
  11. 然后我转到菜单并转到"DMZ主机".我为此启用了服务器计算机.
  12. 在我的主PC上,我继续使用路由器页面上提到的公共WAN IP.它没用.
  1. Download and install WampServer.
  2. Check http://localhost (worked).
  3. Program out the HTML files necessary.
  4. Put it inside of the 'www' directory (the default directory of WampServer for HTML files)
  5. Go to http://localhost to see if it worked (yes, it did). Then right click WAMP notification and "Put online".
  6. Go to my main PC and go to http://[local-ip-of-server-computer] to see if it worked. It did.
  7. Now, I configured the httpd.conf to "Request all granted"
  8. Next, I went on ahead to port forward. My router is Frontier Netgear router.
  9. I went to 192.168.254.254 (Frontier's router addresss) > Firewall Settings > Port Forwarding > Add
  10. I selected "World Wide Web (HTTP)" and "OK".
  11. Then I went to the menu and to "DMZ Host". I enabled my server computer for that.
  12. With my main PC, I went on ahead to my public WAN IP mentioned on the router page. It didn't work.

每当我尝试加载 http://[router-public-wan-ip] ,则Google Chrome浏览器会显示无法访问该网页.ERR_CONNECTION_TIMED_OUT"

Whenever I try to load my http://[router-public-wan-ip], Google Chrome gets a "Webpage not avaliable. ERR_CONNECTION_TIMED_OUT"

我已经在服务器PC的Windows防火墙上转发了端口.我的httpd.conf设置为端口80.此外,我将ServerName更改为[local-server-computer-ip]:80.

I have port forwarded on my server PC's Windows Firewall.My httpd.conf is set to be on port 80. Also, I have changed my ServerName to [local-server-computer-ip]:80.

任何人都可以提供任何建议吗?谢谢.

Can anyone provide any advice? Thanks.

推荐答案

这是我的错误.解决这个问题的办法是,完全没有问题.我只是没有意识到外部IP地址无法由自己的服务器访问-服务器LAN内部的一个必须使用服务器计算机的本地专用IP地址.

This was my mistake. The solution to this problem is that, well, there was no problem at all. I simply hadn't realized that external IP addresses cannot be accessed by their own servers - one inside of the server LAN has to use the server computer's local private IP address.

真心的道歉.感谢所有贡献者.

I sincerely apologize. Thank you to all who contributed.

这篇关于公用IP网页“连接超时";当连接到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 18:31