问题描述
我已经设置了一个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:
当前情况摘要如下:
- 可以访问外部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服务以在.
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!