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

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

curl ipecho.net/plain

Leave a Reply

Your email address will not be published. Required fields are marked *