Computer NetworksNETWORKS

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

source

ip address

Alice AUSTIN

Alice AUSTIN is studying Cisco Systems Engineering. He has passion with both hardware and software and writes articles and reviews for many IT websites.

Leave a Reply

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