如何检查Google Colaboratory的IP地址和端口?

时间:2019-10-14 03:06:27

标签: jupyter-notebook google-colaboratory

谁能告诉我如何检查我的Google Colaboratory托管运行时的IP地址和端口?

1 个答案:

答案 0 :(得分:2)

#Gives ip address
!hostname -I

#gives ip address
!curl ipecho.net/plain

#Gives ip addresses with port numbers
!sudo lsof -i -P -n | grep LISTEN