小编Ter*_*yan的帖子

Can you get external IP address from within a Google Compute VM instance?

Querying the network interface will only return the internal instance IP address info.
Is it possible to get external IP address info from somewhere inside the running instance?

As an example, AWS has a metadata REST endpoint for instance info:
curl http://169.254.169.254/latest/meta-data/public-ipv4

(source: http://tech-queries.blogspot.co.uk/2011/06/how-to-get-public-ip-for-amazon-ec2.html)

google-compute-engine

27
推荐指数
2
解决办法
8879
查看次数

标签 统计

google-compute-engine ×1