在colab中获取当前机器的ip,How can I get the machine IP in colab environment? the answer is..

要想获取外网IP,可以直接使用curl获取。

curl ipecho.net/plain

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注