Skip to main content

Find out your public ip through command line

 

Two examples to get your IP public address through command line:

 

# wget -O- -q https://elkano.org/api/v1/myip
"89.140.154.52"
# curl https://elkano.org/api/v1/myip
"89.140.154.52"

 

One thought to “Find out your public ip through command line”

Leave a Reply

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

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.