Apache Tomcat 无法从外部访问
我们已在面向外部的服务器上安装并运行 Tomcat 6。它被设置为监听端口 8082。我能够通过 localhost:8082 看到默认的欢迎页面。此外,我们的网络人员已经授予了 8082 通信的访问权限。但是,仍然无法从外部访问该服务器(使用 http://ip:8082)。
有人可以分享一些智慧吗?
谢谢,
We have Tomcat 6 installed and running on an external facing server. It is set to listen to port 8082. I was able to see the default welcome page through localhost:8082. In addition, our network guy has already granted access for 8082 communications. However, this server is still not accessible from outside(with http://ip:8082).
Can someone please share some wisdom?
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我会从简单的事情开始。尝试远程登录到该 IP 地址上的端口 8082。如果您的 Tomcat 实例已启动并正在运行并正在侦听端口 8082,但您无法远程登录到它,那么它就无法通过您的防火墙(无论您的网络人员怎么说)。
I'd start with something simple. Try telnetting to port 8082 on that IP address. If your Tomcat instance is up and running and listening on port 8082 but you can't telnet to it, then it's not getting through your firewall (regardless of what your network guy says).
如果可能的话,尝试将 Tomcat 连接器端口更改为 8080 甚至 80。
根据 IANA
http://www.iana.org/assignments/port-numbers
HTTP替代端口是8008,我以前没有尝试过。
我想如果您在一个大公司网络中,他们可能有一个策略禁止到非标准端口的出站流量。只有网络管理员最清楚什么是允许的,什么是不允许的。
Try changing Tomcat Connector port to 8080 or even 80 if possible.
According to IANA
http://www.iana.org/assignments/port-numbers
HTTP alternative port is 8008, which I haven't tried before.
I would imagine if you are in a big corporation network, they may have a policy disabling outbound traffic to nonstandard ports. Only the network administrator knows best what is allowed and what isn't.
将端口 8082 添加到安全组中的 TCP 规则中。
add port 8082 to TCP Rules in Security Groups .