How to find Google Compute Engine’s External IP via CLI?
echo ExternalIP=$(curl -s http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/?recursive=true -H “Metadata-Flavor: Google”)
is the magic command…
Join this channel to get access to perks:
https://www.youtube.com/channel/UCL8vwy2jhEtQrC-Rx6qzCZg/join
▬ Contents of this video ▬
0:00 – Intro
1:12 – Get External IP using Metadata Server
4:48 – Conclusion
ip address