natjohan's blog

Posted mar. 01 janvier 2013

Tip of the week 2

Simply get your public ip address from command line

You want to know your external ip in with command line ? just type :

natjohan$ curl ifconfig.me
XX.XX.XX.XX

If curl is not on your system, you can use wget

natjohan$ wget -qO- ifconfig.me/ip
XX.XX.XX.XX
Category: ToTW
Tags: curl tip whatismyip

Comments