我们是否必须购买域名才能为 Bugzilla 提供服务?

发布于 2024-07-22 18:44:30 字数 163 浏览 2 评论 0原文

我尝试将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

溇涏 2024-07-29 18:44:30

您可以设置动态 dns 服务,例如通过 http://www.dyndns.comhttp://www.no-ip.comhttp://freedns.afraid.org 来解决 IP 变化的问题,无需购买域名(或者也可以购买域名,但这不是必需的)。

但真正的问题是你的队友无法通过当前的 IP 地址访问服务器,这要么是网络服务器配置错误(仅侦听本地主机?),要么是中间有防火墙,或者很可能是端口转发不正确。 t 在您的路由器中进行设置,将来自外部 IP 地址的请求转发到您设置了 Bugzilla 的计算机。 此外,您必须将 urlbase 设置为您的本地 IP 地址,而不是外部 IP 地址,如 blak3r 所说。

检查 http://www.portforward.com 了解如何进行端口转发的说明。 但不要忘记提到的所有内容都必须正常工作:

  • Web 服务器侦听外部请求:这可以通过本地网络 IP 地址(您在命令中看到的内容)从同一内部网络进行测试Windows 中的 line console ipconfig 和 Linux 中的 ifconfig)。 如果您可以通过本地 IP 地址从同一网络上的不同计算机进行连接,则问题就可以解决。
  • 防火墙(在路由器和网络服务器计算机中)接受与网络服务器端口的连接:对于网络服务器中的防火墙,与上面相同的测试涵盖它。
  • 端口转发,以便路由器将 Web 服务器端口上收到的请求转发到 Web 服务器计算机:这以与路由器中的防火墙相同的方式进行测试,也就是说,您必须有您的朋友(或尝试连接到设置的 dyn dns 名称或whatsmyip.org 报告的外部 IP。

这一切都假设您的测试伙伴不在同一网络上,如果他在同一网络上,则只需使用本地 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:

  • Web server listening to outside requests: This can be tested from the same internal network via the local network IP address (what you see typing in a command line console ipconfig in Windows and ifconfig in Linux). If you can connect from a different machine on the same network via the local IP address, this is solved.
  • Firewalls (in router and the webserver machine) accepting connections to the web server port: For firewalls in the web server, the same test as above covers it.
  • Port forwarding so the router forwards the requests received on the web server port to the web server machine: This gets tested in the same way as firewalls in the router, that is, you must have your friend (or yourself from the house of your friend) try to connect to the dyn dns name set up or to the external IP as reported by whatsmyip.org.

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!

等待圉鍢 2024-07-29 18:44:30

您很可能没有将端口 80 转发到您的计算机,这就是他在使用从 whatismyip.com 返回的 IP 时无法连接的原因。

假设您使用的是 Windows 盒子...

  Start->Run->cmd then type 
  ipconfig

如果您的地址以 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

  Start->Run->cmd then type 
  ipconfig

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文