Tuesday, October 19, 2010

my ip from command line

wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

1 comment:

  1. If you have a server yourself, you might want to add a script there, so you can more easily do something in line of:

    curl www.example.com/ip.php

    ReplyDelete