无法访问Google Cloud Compute实例外部IP [英] Cannot access Google Cloud Compute Instance External IP

查看:122
本文介绍了无法访问Google Cloud Compute实例外部IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了一个Google Cloud Compute实例:

I have set up an Google Cloud Compute Instance:

  • 机器类型
    • n1-standard-1(1个vCPU,3.75 GB内存)
    • Machine type
      • n1-standard-1 (1 vCPU, 3.75 GB memory)
      • 英特尔Haswell
      • us-east1-c

      我可以使用该外部地址.

      I can ssh in using the external address.

      我已经安装了vncserver,并且可以从本地主机上的端口5901以及内部IP上访问它.

      I have installed the vncserver and can access it on port 5901 from localhost as well as the internal IP.

      我正在尝试从静态外部IP地址访问它,但是它不起作用.

      I am trying to access it from the static, external IP address but it is not working.

      我已将防火墙配置为打开以连接到 0.0.0.0/0 ,但无法访问.

      I have configured the firewall to open to port to 0.0.0.0/0, but it is not reachable.

      任何人都可以帮忙吗?

      ------在对两个答案的提示进行进一步调查(谢谢!)之后,我得到了部分答案:

      ------after further investigation from the tips from the two answers (thanks, both!), I have a partial answer:

      默认情况下,Google Cloud Compute实例设置为不允许 HTTP流量.我重置了配置以允许HTTP通信.一世 然后尝试使用疑难解答提示在以下位置运行小型HTTP服务: Python.我可以通过该服务从服务中获得回复 互联网.

      The Google Cloud Compute instance was set, by default, to not allow HTTP traffic. I reset the configuration to allow HTTP traffic. I then tried the troubleshooting tip to run a small HTTP service in python. I was able to get a ressponse from the service over the internet.

      当前情况摘要如下:

      • 可以访问外部IP地址
      • 已启用并且适用于SSH
      • 已启用并适用于HTTP
      • 它似乎不允许来自vncserver
      • 的流量
      • The external IP address can be reached
      • It is enabled and working for SSH
      • It is enabled and working for HTTP
      • It does not seem to allow traffic from vncserver

      有什么主意如何配置计算实例以允许vncserver流量?

      Any idea how to configure the compute instance to allow for vncserver traffic?

      推荐答案

      如果您已经验证 Google防火墙或您的虚拟机未阻止数据包,则必须确保VNC服务外部IP地址.

      If you already verified that Google Firewall or your VM are not blocking packets, you must make sure that VNC service is configured to listen on the external IP address.

      在Google项目之外,您始终可以使用 nmap 之类的实用程序显示有关端口状态的信息.

      You can always use a utility like nmap outside Google project to reveal information on the port status.

      这篇关于无法访问Google Cloud Compute实例外部IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆