简体   繁体   English

无法访问 GCP 上的外部 IP

[英]Can't access the External IP on GCP

I've deployed my java application on VM instance.我已经在 VM 实例上部署了我的 Java 应用程序。 I'm able to access it with EXTERNALIP:8080 and i can access it with my domain "www.domain.com:8080".我可以使用 EXTERNALIP:8080 访问它,我可以使用我的域“www.domain.com:8080”访问它。 I've configured to tomcat server to port 80 so that i can access with EXTERNALIP.我已将 tomcat 服务器配置为端口 80,以便我可以使用 EXTERNALIP 进行访问。 But my site is refusing to connet to that server.但是我的站点拒绝连接到该服务器。 And the tcp:80 port is set to ingres 0.0.0.0/0 it is pointing to internal ip.并且 tcp:80 端口设置为 ingres 0.0.0.0/0 它指向内部 ip。 i'm not finding a solution to point it to the external ip.我没有找到将其指向外部 IP 的解决方案。 When i try to run with my external ip i'm getting message like..当我尝试使用我的外部 ip 运行时,我收到类似..

This site can’t be reached
EXTERNALIP refused to connect.

May you check this link [1], the answer may be helpful for this case.您可以查看此链接 [1],答案可能对这种情况有所帮助。

[1] Unable to access tomcat server on 8080 port from Google Compute Engine VM (Windows Server 2012) [1] 无法从 Google Compute Engine VM (Windows Server 2012) 访问 8080 端口上的 tomcat 服务器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM