我们是否必须购买域名才能为 Bugzilla 提供服务?
我尝试将 Whatismyip.com 的 IP 放入 Bugzilla 的 urlbase 中,但没有成功。 我无法为我的队友创建新帐户,而他也无法通过在浏览器中输入我的 IP 地址来访问服务器。 当然,当我再次连接时,我的 IP 地址将会改变。 我们必须购买 www 地址来托管 Bugzilla 吗?
I tried putting my IP from whatismyip.com in the urlbase of Bugzilla but it did not work. I wasn't able to create a new account for my team mate, and he wasnt able to access the server by typing the my ip address in his browse. And surely, when I connect again, my IP address will change. Do we have to buy a www address to host Bugzilla?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以设置动态 dns 服务,例如通过 http://www.dyndns.com 或 http://www.no-ip.com 或 http://freedns.afraid.org 来解决 IP 变化的问题,无需购买域名(或者也可以购买域名,但这不是必需的)。
但真正的问题是你的队友无法通过当前的 IP 地址访问服务器,这要么是网络服务器配置错误(仅侦听本地主机?),要么是中间有防火墙,或者很可能是端口转发不正确。 t 在您的路由器中进行设置,将来自外部 IP 地址的请求转发到您设置了 Bugzilla 的计算机。 此外,您必须将 urlbase 设置为您的本地 IP 地址,而不是外部 IP 地址,如 blak3r 所说。
检查 http://www.portforward.com 了解如何进行端口转发的说明。 但不要忘记提到的所有内容都必须正常工作:
这一切都假设您的测试伙伴不在同一网络上,如果他在同一网络上,则只需使用本地 IP 地址(通过 ipconfig 或 ifconfig 显示)而不是外部 IP 地址,并确保涵盖第一步(Web 服务器侦听外部请求)应该足够了,不需要其他任何东西!
You can setup a dynamic dns service, for example via http://www.dyndns.com or http://www.no-ip.com or http://freedns.afraid.org to solve the changing ip problem without buying a domain (or buying a domain as well, but it's not a requirement).
But the real problem is that your team mate cannot access the server via the current IP address which points to either a misconfiguration of the webserver (listening only on localhost?), to a firewall in between, or most likely, that port forwarding isn't set up in your router for requests coming to your external IP address to be forwarded to the machine where you have Bugzilla set up. Additionally, you must set the urlbase to your local IP address, not to the external IP address, as blak3r says.
Check http://www.portforward.com for instructions on how to do port forwarding. But don't forget that everything mentioned has to be working:
This is all assuming your test mate is not on your same network, if he is, just using the local IP address (shown via ipconfig or ifconfig) instead of the external IP address and making sure the first step is covered (web server listening to outside requests) should be enough and nothing else is needed!
您很可能没有将端口 80 转发到您的计算机,这就是他在使用从 whatismyip.com 返回的 IP 时无法连接的原因。
假设您使用的是 Windows 盒子...
如果您的地址以 192...* 或 10...* 开头,则这是您的局域网 (LAN ) 知识产权。 如果是这种情况,那么您的 ISP 为您提供了路由器。 查找称为端口转发或“应用程序设置”的设置,它允许您将路由器上的所有传入流量转发到特定的 IP 地址。 进入路由器的配置设置并确保端口 80(如果您使用 ssl,则可能是 443)转发到您的本地 IP。
您提到的另一个问题是您没有静态IP。 这是一个常见问题,不,您不需要购买地址。 有几个站点可以为您提供免费的动态 DNS 主机。 尝试 no-ip.org。
You most likely do not have your port 80 forwarded to your machine which is the reason he cannot connect when using the IP that was returned from whatismyip.com.
Assuming you're on a windows box... do
If your address starts with 192...* or 10...* this is your Local Area Network (LAN) IP. If this is the case, then your isp provided you with a router. Look for a setting called port forwarding or "application setting" which allows you to forward all incoming traffic on your router to a particular IP address. Go into your router's configuration settings and make sure port 80 (and maybe 443 if you're using ssl are forwarded to your local ip).
The other problem you mentioned is you do not have a static IP. This is a common problem and no you do not need to buy an address. There are several sites which can provide you a free dynamic dns host. Try no-ip.org.