小编and*_*ndy的帖子

为什么我不能从外部访问Tomcat?

我们从托管公司租用了一台 Virtual MS Server 2008 机器。我这么说是因为它可能有一堆额外的设置,而不是 2008 年的“原版”设置。

无论如何,我安装了 Tomcat 6.0 的默认安装,并且让它在服务器上运行良好。

我可以通过 localhost:8080 或 xxx.xxx.xxx.xxx:8080 访问它。

但是,当我尝试使用静态 IP 地址从家里的机器访问它时,它不起作用。为什么?

我认为这可能是 Windows 防火墙,所以我为端口 8080 创建了一个新的入站规则。

仍然不起作用,我只是从浏览器中得不到任何信息,就像它无法连接到该 IP 地址一样。

但是,当我只输入 IP 地址(即端口 80)时,它可以很好地解析 DNS 并转到我们的 ASP.NET IIS 应用程序......那么,有什么问题呢?

更新:

这是我的 tomcat server.xml:

    <?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You …
Run Code Online (Sandbox Code Playgroud)

windows-server-2008 tomcat6 external-connection

5
推荐指数
2
解决办法
6万
查看次数