Natjohan's blog

  1. Tip of the week 2

    mar. 01 janvier 2013

    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 ...