Colaboratory虚拟实例IP范围?

Colaboratory virtual instances IP range?

我想介绍一下我们公司的Google Colaboratory。 但是,对于我们的大部分实验,我们需要访问使用白名单的 mongoDB 服务器。 因此,我想知道 Colaboratory 使用的虚拟实例是否具有我们可以使用的特定 IP 范围? 否则,仍然可以使用本地运行时和隧道连接到 Jupyter Notebook 服务器,如下所述:https://research.google.com/colaboratory/local-runtimes.html 谢谢, 帕斯卡

您可以使用以下命令确定 Colab notebook 的 IP 地址。

!curl ipecho.net/plain

我看到了 35.*.*.* subnet 范围内的 Colab IP 地址,但这可能会改变。

它似乎在 34.*.*.*35.*.*.* 范围内。

这是我重启几次的实验。

# 35.237.149.168
# 35.234.56.15
# 35.231.231.209
# 35.227.111.90
# 35.221.253.131
# 35.221.207.7
# 35.221.166.62
# 35.204.72.157
# 35.201.227.155
# 35.196.149.235
# 35.194.57.3
# 35.185.124.167
# 34.91.205.101
# 34.80.163.26
# 34.80.152.217
# 34.80.203.85
# 34.74.200.106
# 34.73.212.38
# 34.73.174.186
# 34.73.45.78
# 34.68.222.221

这是来自 Google 的官方 IP 范围列表。

https://www.gstatic.com/ipranges/cloud.json