Simple life, Complicated mind
Monday, June 13, 2016
How to check the external IP address on Linux
# curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
or shorter
# wget http://ipinfo.io/ip -qO
Reference:
http://askubuntu.com/questions/95910/command-for-determining-my-public-ip
1 comment:
YaoJun
June 17, 2016 at 7:06 PM
even simpler,
# curl ifconfig.co
Reply
Delete
Replies
Reply
Add comment
Load more...
‹
›
Home
View web version
even simpler,
ReplyDelete# curl ifconfig.co