当我在 Google Compute Engine 上执行 运行 `curl` 命令时连接超时

Getting connection time out when I run `curl` command on Google Compute Engine

我创建了一个虚拟机并在其中安装了 WordPress,并将其推送到 Google 云端。 运行 正在 www.mobilesoft.asia 上线。

我在其中安装了 WooCommerce 插件以创建我的商店。然后我添加了一个支付模块,如 Paypal 来处理支付 t运行sactions。问题是当我尝试购买产品时,付款按钮没有反应。

我打开了 SSH 控制台并尝试卷曲 URL,当我点击支付按钮时它被调用,但我发现连接超时。这些是我 运行

的命令
hesam@bitnami-wordpress-xxx:~$ curl http://www.parspal.com
curl: (7) Failed to connect to www.parspal.com port 80: Connection timed out
hesam@bitnami-wordpress-xxx:~$ curl http://merchant.parspal.com/WebService.asmx?wsdl
curl: (7) Failed to connect to merchant.parspal.com port 80: Connection timed out
hesam@bitnami-wordpress-xxx:~$ curl https://merchant.parspal.com/WebService.asmx?wsdl
curl: (7) Failed to connect to merchant.parspal.com port 443: Connection timed out

Parspal(我正在使用他们的支付服务的公司)说您的主机无法连接到我们的网络服务。可能吗?问题的原因可能是什么?

当我在我的本地终端上 运行 以上命令时,我可以得到一些东西,但我不能通过 SSH 连接到我的虚拟机。我的计算引擎需要配置什么吗?

请检查实例是否有外部 IP 地址。否则,将无法与外界通信。

如果有帮助,请检查answer

www.parspal.com 解析为在伊朗注册的 IP 地址,并且存在阻止您向此类地址发送流量的限制:

Google Cloud Engine - failed to curl a website locate in Iran from my VM instance